This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Uninstalling Previous Product
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 14, 2008
04:25 AM
Uninstalling Previous Product
Hi All,
I am using InstallShield 2008 which is a pure InstallScript project.I have created a product1 using InstallShield 2008 in a 32 bit machine.I have installed the product1 in the 64 bit target machine.
I have created a nother product2 with the same InstallShield 2008 in 32 bit machine and now i want to uninstall the older product1 when i try to install the new product2.
I hope there is a way to handle this.Can any one help me how to do this plz.
My advance thanks !
I am using InstallShield 2008 which is a pure InstallScript project.I have created a product1 using InstallShield 2008 in a 32 bit machine.I have installed the product1 in the 64 bit target machine.
I have created a nother product2 with the same InstallShield 2008 in 32 bit machine and now i want to uninstall the older product1 when i try to install the new product2.
I hope there is a way to handle this.Can any one help me how to do this plz.
My advance thanks !
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 14, 2008
10:50 AM
There is a way--- what we do is define the uninstall string
#define UNINSTALL_PATH "software\\microsoft\\windows\\currentversion\\uninstall"
//Set the registry root directory
nremove12 = FALSE;
nremove12 = PerformUnistall("JRE 1.2", UNINSTALL_PATH+"\\JRE 1.2",
"-y -a -m -f\""+PROGRAMFILES+"\\javasoft\\jre\\1.2\\Uninst.isu\"",
WINDIR+"Isuninst.exe");
This has worked real well for us... Create a function for this and call it in OnFirstUIBefore()...
Hope this helps
#define UNINSTALL_PATH "software\\microsoft\\windows\\currentversion\\uninstall"
//Set the registry root directory
nremove12 = FALSE;
nremove12 = PerformUnistall("JRE 1.2", UNINSTALL_PATH+"\\JRE 1.2",
"-y -a -m -f\""+PROGRAMFILES+"\\javasoft\\jre\\1.2\\Uninst.isu\"",
WINDIR+"Isuninst.exe");
This has worked real well for us... Create a function for this and call it in OnFirstUIBefore()...
Hope this helps
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 15, 2008
03:15 AM
Hi retzcat,
Thanks for your reply,
My product code for product1 and product2 are different so will it work fine still?
And can you tell is there any common path(for both 32 and 64 bit) to Query from the registry if the product is installed in 32 bit as well in 64 bit machine.
Plz help me.
My advance Thanks!
Thanks for your reply,
My product code for product1 and product2 are different so will it work fine still?
And can you tell is there any common path(for both 32 and 64 bit) to Query from the registry if the product is installed in 32 bit as well in 64 bit machine.
Plz help me.
My advance Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 17, 2008
02:15 PM
You could always look for the GUID's...
PerformUnistall("App Name",UNINSTALL_PATH+"\\{GUID}",
"\""+COMMONFILES^"\\INSTAL~1\\PROFES~1\\RunTime\\0701\\Intel32\\Ctor.dll\",LaunchSetup \""+PROGRAMFILES+"InstallShield Installation Information\\{GUID}\\setup.exe\" -uninst", WINSYSDIR^"rundll32");
IF you would like the PerformUninstall function, e-mail me and I can send it to you..
Retzcat
PerformUnistall("App Name",UNINSTALL_PATH+"\\{GUID}",
"\""+COMMONFILES^"\\INSTAL~1\\PROFES~1\\RunTime\\0701\\Intel32\\Ctor.dll\",LaunchSetup \""+PROGRAMFILES+"InstallShield Installation Information\\{GUID}\\setup.exe\" -uninst", WINSYSDIR^"rundll32");
IF you would like the PerformUninstall function, e-mail me and I can send it to you..
Retzcat
sammathew wrote:
Hi retzcat,
Thanks for your reply,
My product code for product1 and product2 are different so will it work fine still?
And can you tell is there any common path(for both 32 and 64 bit) to Query from the registry if the product is installed in 32 bit as well in 64 bit machine.
Plz help me.
My advance Thanks!
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)