Some questions about uninstallation actions and debugging
Posted: Fri Dec 10, 2010 1:51 pm
I am testing InstallAware this week as a potential replacement for Installshield. So far I haven't done anything special, but I like the emphasis on the scripting and how it's tied to the IDE. However, I am having problems figuring one thing:
How do I run actions during uninstall?
I create a file (or append to one if it already exists on the user's system) if a user selects a certain feature during installation. On uninstallation I want to delete this file (ideally I want to remove the two lines I added during installation, but I'm starting simple since I'll need the delete feature later anyway). I tried putting the Delete Files command in the Perform Uninstallation section, but that didn't work. During debugging, it would hit that code and go through it without deleting the file or giving any error code. I tried putting the same command in the install section:
Delete Files $CATIA19LOCATION$\$CATIAFILENAME$ (when uninstalling)
but this doesn't work either. In fact, during debugging, I get the error message: This installation is forbidden by system policy. Contact your system administrator.
Strange thing is that it will uninstall just fine from Add/Remove without giving that error (but still it doesn't delete the file).
Any help is appreciated.
How do I run actions during uninstall?
I create a file (or append to one if it already exists on the user's system) if a user selects a certain feature during installation. On uninstallation I want to delete this file (ideally I want to remove the two lines I added during installation, but I'm starting simple since I'll need the delete feature later anyway). I tried putting the Delete Files command in the Perform Uninstallation section, but that didn't work. During debugging, it would hit that code and go through it without deleting the file or giving any error code. I tried putting the same command in the install section:
Delete Files $CATIA19LOCATION$\$CATIAFILENAME$ (when uninstalling)
but this doesn't work either. In fact, during debugging, I get the error message: This installation is forbidden by system policy. Contact your system administrator.
Strange thing is that it will uninstall just fine from Add/Remove without giving that error (but still it doesn't delete the file).
Any help is appreciated.