uninstall

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

uninstall

Postby shomw » Thu Feb 02, 2006 1:30 pm

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

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

Postby MichaelNesmith » Thu Feb 02, 2006 2:13 pm

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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

uninstall

Postby shomw » Thu Feb 02, 2006 4:43 pm

yes but where do I put actions that I only want to run on uninstall?

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

Postby MichaelNesmith » Thu Feb 02, 2006 7:19 pm

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.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

Postby shomw » Mon Feb 06, 2006 10:24 am

Thank You
Sam

shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

Postby shomw » Tue Feb 07, 2006 2:41 pm

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

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Tue Feb 07, 2006 4:28 pm

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.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

Postby shomw » Tue Feb 07, 2006 5:02 pm

the uninstall needs the reboot to delete files that are in use. so if I'm replacing them won't the new version of the file be deleted on the reboot at the end of the install?

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Tue Feb 07, 2006 5:11 pm

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/

shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

Postby shomw » Tue Feb 07, 2006 5:17 pm

So the bottom line is to comment out the reboot?

PS. I'm trying to migrate this install from InstallShield :D

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

Postby MichaelNesmith » Tue Feb 07, 2006 8:29 pm

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!
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: Majestic-12 [Bot] and 241 guests