I set a number of reg settings based on values in an ini file. How do I prevent the uninstall from trying to read the ini file on the uninstall? How do I cause some conditions to only be run during install and others only during uninstall?
Thank you
Sam
uninstall
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Hi Sam!
If you put them in the block before Apply Install, they will only execute at install time, and not at uninstall time. Just switch to the script view, ALT+C, and type CTRL+F, searching for Apply Install; then use Get INI File Settings and Write Registry commands to do what you want.
If you put them in the block before Apply Install, they will only execute at install time, and not at uninstall time. Just switch to the script view, ALT+C, and type CTRL+F, searching for Apply Install; then use Get INI File Settings and Write Registry commands to do what you want.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Hi Sam!
Please look at the script as I advised.
There is an Apply Uninstall command also - its in the block of code above Apply Install - you want to insert your custom commands above that if you want them to run at uninstall time.
Please look at the script as I advised.
There is an Apply Uninstall command also - its in the block of code above Apply Install - you want to insert your custom commands above that if you want them to run at uninstall time.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Hi thank you for the prompt answers.
I have finally convinced my boss to replace Install Sield with InstallAWARE. They made the purchase this morning.
I need to know if it is possible to prevent a reboot after the uninstall if it is being uninstalled during an upgrade? since it reboots after the install I do not want it to have to reboot 2 times.
Also one of our components replaces a windows dll this gets started by windows at bootup the uninstall canot delete this file unless there is a reboot the only solution I could think of for this is to rename the file before uninstalling it, will this break the uninstall?
many thanks in advance
Sam
I have finally convinced my boss to replace Install Sield with InstallAWARE. They made the purchase this morning.
I need to know if it is possible to prevent a reboot after the uninstall if it is being uninstalled during an upgrade? since it reboots after the install I do not want it to have to reboot 2 times.
Also one of our components replaces a windows dll this gets started by windows at bootup the uninstall canot delete this file unless there is a reboot the only solution I could think of for this is to rename the file before uninstalling it, will this break the uninstall?
many thanks in advance
Sam
-
- Posts: 904
- Joined: Thu Dec 22, 2005 7:03 pm
- Contact:
Hi Sam!
You can easily customize the reboot sequence following the auto uninstall - just take a look in your setup script, the pre-reqs section. There is a MessageBox command which asks for users confirmation for the reboot, and reboots if confirmed. You could delete all that and just normally continue the installation, everything is 100% customizable.
I am not sure I understand your second question...you can sure try renaming the file by calling the MoveFileA Win32 API using Call DLL Function - this would not break the uninstall, no - but I am not sure if I would do that, when the above workaround is available.
You can easily customize the reboot sequence following the auto uninstall - just take a look in your setup script, the pre-reqs section. There is a MessageBox command which asks for users confirmation for the reboot, and reboots if confirmed. You could delete all that and just normally continue the installation, everything is 100% customizable.
I am not sure I understand your second question...you can sure try renaming the file by calling the MoveFileA Win32 API using Call DLL Function - this would not break the uninstall, no - but I am not sure if I would do that, when the above workaround is available.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 904
- Joined: Thu Dec 22, 2005 7:03 pm
- Contact:
Oh, I see what you mean. No, I believe the steps should be ordered and everything should work fine. I would try and find out - if it doesn't work, only then try to rename the source file in use.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Well, I'd comment out that whole block of text - also the MessageBox that asks user confirmation for reboot. You can modify the script any way you like - just be sure you're not breaking any If blocks etc...let me know if you need more help.
Delighted to win another convert from InstallShield!
Delighted to win another convert from InstallShield!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: No registered users and 150 guests