Giter Club home page Giter Club logo

Comments (3)

fasterthanlime avatar fasterthanlime commented on August 20, 2024

To install:

some-setup.exe /S /NCRC /D=C:\install_dir

To uninstall:

C:\install_dir\unins*.exe /S _?=C:\install_dir

NB:

  • It seems uninstaller can have different names (uninstall.exe, uninstaller.exe)
  • Omitting _? will prevent 'waiting for install to finish' as uninstaller will first copy itself somewhere else
  • Specifying _? means the uninstaller will not be able to delete itself, still need to wipe install dir after uninstallation

from itch.

fasterthanlime avatar fasterthanlime commented on August 20, 2024

More research:

VLC installer doesn't respect /D flag (possibly has $InstallDir hardcoded in its script?). Pidgin installer does.

Just gonna give up on supporting games that hardcode $InstallDir for now.

Also, only common factor between uninstallers is the unins string in them. I've seen:

  • uninstall.exe
  • uninstaller.exe
  • unins000.exe
  • pidgin-uninst.exe

from itch.

fasterthanlime avatar fasterthanlime commented on August 20, 2024

Recent NSIS installers seem to always require administrator privileges (executable flag?), simply spawning them won't work.

Via https://github.com/itchio/elevate, these work fine (from bash):

./elevate.exe H:/pidgin-2.10.11.exe //S //NCRC /D=H:\\pidgin-install
 ./elevate.exe H:/pidgin-install/pidgin-uninst.exe //S _?=H:\\pidgin-install

(weird quotes/backquotes is because of MinGW path translation)

from itch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.