Advanced Setup.exe installer - command line switch to remove a package

Using Advanced installer, I created a package, resulting in an EXE (there are deployment functions that cannot be contained in the MSI file).

Now that the Advanced Installer allows me to pass command-line options to the base MSI, I don’t know what parameters need to be passed in order for the package to be deleted.

For example, the following parameters log configuration events and instruct the base MSI to work passively and record its own actions.

"c:\MySetup.exe" /exelog "c:\log.txt" /passive /log "c:\msilog.txt" 

The resulting commands that AdvancedInstaller executes are ultimately

 msiexec.exe /i [path to extracted msi] /passive /log "c:\msilog.txt" 

But try as I could, I cannot figure out how to start AdvancedInstaller msiexec using / uninstall or / x. For instance:

 "c:\MySetup.exe" /exelog "c:\log.txt" /x /log "c:\msilog.txt" 

leads to

 msiexec.exe /i [path to extracted msi] /x /passive /log "c:\msilog.txt" 

which of course fails because / x is in the wrong place (should be instead of / i). What switches / options does the exe advanced installer need?

+4
source share
2 answers

Well, he was buried a bit obscurely in the documentation: All pre-path-to-msi parameters follow "[option] // [optional parameters]" pattern

It will be further noted that the bootstrap of the Advanced Installer EXE disables MSI as deletion.

UPDATED:

 "c:\MySetup.exe" /exelog "c:\log.txt" /x // /log "c:\msilog.txt" 
+4
source

You can use the // marker, for example:

 "c:\MySetup.exe" /exelog "c:\log.txt" /x // /log "c:\msilog.txt" 

This token is used to replace the msiexec command line. You can read about it in the user guide: http://www.advancedinstaller.com/user-guide/exe-setup-file.html

+1
source

Source: https://habr.com/ru/post/1385308/


All Articles