Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: davethomson on January 17, 2013, 04:23:28 AM

Title: Uninstall Previous Version
Post by: davethomson on January 17, 2013, 04:23:28 AM
Back again. I suddenly realized the InnoScript can produce script that will uninstall the current program on the users computer.  However, I don't know exactly how to insert this opinion using InnoScript. Can you explain how to do this. Currently the user has to do the uninstall using Control Panel. I am using 10.5.9.
 
Remember, I am not that well informed in scripting and don't use InnoScript other than for very basic scripts. I would display the InnoScript screen for my program but I can't seem to capture it using PaintShop Pro Screen Capture. Apparently,InnoScript doesn't allow using F-keys.
Title: Uninstall Previous Version
Post by: davethomson on January 17, 2013, 07:22:29 AM
Figured out how to get the image, which is shown below.  How would I include script to automatically uninstall the previous version?
 
(https://randemsystems.support/discus/messages/12/10741.jpg)
Title: Uninstall Previous Version
Post by: Randem on January 17, 2013, 11:05:34 AM
Aloha,
 
InnoScript does not have an uninstall feature for scripts, however in Inno Setup you can uninstall previous application.
 
You would need to research the application that is installed and find out how to detect if it is installed then run the uninstall.exe for that program. Now this does depend on which installer that was used to install in the first place.
 
BTW: What does F-keys have to do with InnoScript or screen capture? Screen capture is done with Shift-PrtScr...
Title: Uninstall Previous Version
Post by: davethomson on January 19, 2013, 02:37:50 PM
I use PaintShop Pro which sets up screen capture by specifying a hot key, e.g. F11.  This doesn't work in InnoScript for some reason. I discovered that simply displaying the screen, in InnoScript, I press the Print Screen key, open PaintShop Pro, start a new, blank image, right click on the image, and select PASTE.  The screen snap shot I took using PRINT SCREEN pops on the image. )
 
I don't think I will mess around with the InnoSetup code to un-install the current version.  Might really screw up my or someone else's PC.  If you had a way to do this in InnoScript I would have done it, i.e. what you do in InnoScript works!
 
Thanks for the great help as always.  Don't know what I would do without your excellent help and great program.
Title: Uninstall Previous Version
Post by: Randem on January 19, 2013, 11:56:48 PM
If you have installed the application then you can look in the installed folder then run the unins000.exe file (the 000 may change). You can also find the installed location information in the registry for your application, then run the uninstall program that relates to your application.
 
Ex. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YourApplication_is1