How do I control the sequence of events?

Got a problem you cannot solve? Try here.
shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

How do I control the sequence of events?

Postby shomw » Thu Feb 23, 2006 1:29 pm

Hi;
Thanks for all the help in the past.

I have 2 questions:

1. when the variable NEEDSUPGRADE equals true I call a script on the line before Install/Remove MSI... that script has two commands, first it has a Read Registry HKLM\\SOFTWAREJ\\MY CORP\\MY APP\\Setting into SettingBackup
then it has a Edit INI File c:\\windows\\temp.ini, [MY APP] Setting=$SettingBackup$

then when I do the install when NEEDSUPGRADE equals true I read the setting from the temp.ini and add it to the registry. however it seems that the ini file is only getting written after the registry settings are set and therefore the settings in the reg after the install is done do not match the backed up settings. How do I make sure that the ini is written before the install of the new version begins?

2. what command can be used from the command line to do a silent uninstall?

many thanks in advance.
Shom

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Feb 23, 2006 5:19 pm

Hi Shom!

The answers to your questions are in the help file, with plenty of details:

1) "Setup Commands Preceding Apply Uninstall", section "The Install - Uninstall Cycle"

2) "Uninstalling from the Command Line", "Setup Command Line Parameters"
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: JohnGaver and 34 guests