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
- :
- How to auto start the install process after uninstall?
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
‎Jun 03, 2009
02:05 AM
How to auto start the install process after uninstall?
Hi,
I am new to IS2008. When performing a software upgrade, after uninstalling the previous version, I would like to automatically start the install process without double clicking again setup.exe. Any ideas on how to achieve this?
Thanks!
I am new to IS2008. When performing a software upgrade, after uninstalling the previous version, I would like to automatically start the install process without double clicking again setup.exe. Any ideas on how to achieve this?
Thanks!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2009
05:18 AM
HI,
are you storing the existing installed product code in the registry Y/N ..?
IF yes get the registry value useing this code and uninstall the product in silent mode.
RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE);
szKey = PRODUCT_KEY;
szName = "Productcode";
nvType = REGDB_STRING;
RegDBGetKeyValueEx (szKey,szName,nvType,svValue,nvSize);
if svValue != "" then
szProgram = "msiexec.exe";
Uninstall = "/x ";
Suninstall = " /Quiet ";
CmdLineValue = Uninstall + svValue + Suninstall;
//CmdLineValue = Uninstall + svValue ;
//MessageBox(CmdLineValue,INFORMATION);
LaunchAppAndWait(szProgram,CmdLineValue,LAAW_OPTION_WAIT);
return 0;
endif;
IF NO,after installing the product in the registry here you will get it.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
useing the above code ..you can uninstall the product.
Steps to Uninstall the application in silent mode.
1)after welcome dialog create a custom daillog with two radio butoon.
one radio :upgrdare the installion with reataining old configuration
two radio :remove all the componentes with out retaining the old configuration.
after this show EULA dialog to continue the installation.
i think this information will help ful to you.
Regards
Reddy.c
are you storing the existing installed product code in the registry Y/N ..?
IF yes get the registry value useing this code and uninstall the product in silent mode.
RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE);
szKey = PRODUCT_KEY;
szName = "Productcode";
nvType = REGDB_STRING;
RegDBGetKeyValueEx (szKey,szName,nvType,svValue,nvSize);
if svValue != "" then
szProgram = "msiexec.exe";
Uninstall = "/x ";
Suninstall = " /Quiet ";
CmdLineValue = Uninstall + svValue + Suninstall;
//CmdLineValue = Uninstall + svValue ;
//MessageBox(CmdLineValue,INFORMATION);
LaunchAppAndWait(szProgram,CmdLineValue,LAAW_OPTION_WAIT);
return 0;
endif;
IF NO,after installing the product in the registry here you will get it.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
useing the above code ..you can uninstall the product.
Steps to Uninstall the application in silent mode.
1)after welcome dialog create a custom daillog with two radio butoon.
one radio :upgrdare the installion with reataining old configuration
two radio :remove all the componentes with out retaining the old configuration.
after this show EULA dialog to continue the installation.
i think this information will help ful to you.
Regards
Reddy.c
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2009
07:10 PM
Thanks, I'll work on that 🙂
As for your question. No, I am not storing the installed product code in registry.
As for your question. No, I am not storing the installed product code in registry.
