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
- :
- Re: Silent 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 10, 2008
03:12 PM
Silent uninstall
I have a silent install which works perfectly. Now I want to create a silent uninstall, for my installer (basic MSI, installshield 2008). Does anyone know how to do this?
(20) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2008
03:26 PM
Take a look at this article:
http://helpnet.acresso.com/robo/projects/helplibdevstudio9/IHelpCmdLineMSI.htm
For ex: to uninstall a basic msi package with basic user interface, the command line would be:
msiexec /x {product GUID} /qb
http://helpnet.acresso.com/robo/projects/helplibdevstudio9/IHelpCmdLineMSI.htm
For ex: to uninstall a basic msi package with basic user interface, the command line would be:
msiexec /x {product GUID} /qb
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
01:00 AM
Hi,
In my scenerio this is not working.
I am using basic msi installshield 12 project.
I compressed all the files into setup.exe.
i installed the product and now i want to uninstall the product in silent mode.
During uninstallation i want to create a log file. So tell me how to uninstall setup.exe in silent mode and how to create log file for that.
In my scenerio this is not working.
I am using basic msi installshield 12 project.
I compressed all the files into setup.exe.
i installed the product and now i want to uninstall the product in silent mode.
During uninstallation i want to create a log file. So tell me how to uninstall setup.exe in silent mode and how to create log file for that.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
07:37 AM
It the command same in case of all different types of projects in installshield.
So, to setup I will run a setup.exe and to uninstall i will run a "msiexec /x" from the setup folder.
Now, my setup folder does not have any msiexec file. Also, it gives me the prompt saying wheter I want to uninstall and then when I say yes for uninstalling it gives me the following error
" The installation package could not be opene. verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package."
Do I need something to the code or change some settings??
So, to setup I will run a setup.exe and to uninstall i will run a "msiexec /x" from the setup folder.
Now, my setup folder does not have any msiexec file. Also, it gives me the prompt saying wheter I want to uninstall and then when I say yes for uninstalling it gives me the following error
" The installation package could not be opene. verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package."
Do I need something to the code or change some settings??
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:00 AM
Did you check what is there in the 'UninstallString' key under 'Uninstall \' registry?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:15 AM
I did not see any uninstall string in the registry, it's empty, or may be I am not looking at the right place......
I am looking in HKLM\Software\\\
I am looking in HKLM\Software\
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:27 AM
Look the 'UninstallString' under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<Ur Product GUID>' registry.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<Ur Product GUID>' registry.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:31 AM
Thank you! Now that I have the uninstallstring...what would the entire command be??
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:35 AM
msiexec /x /qb
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:40 AM
....it still did not work 😞
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:43 AM
What's happening?? can you post the log file?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:44 AM
Is there any other way to get it to work?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:46 AM
an errorMSI file got generated but nothing else...and I cannot open that file
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:47 AM
Try
msiexec /x /l*v C:\Uninstall.log
msiexec /x
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
08:54 AM
Verbose logging started: 6/11/2008 9:39:21 Build type: SHIP UNICODE 3.01.4000.4042 Calling process: C:\WINDOWS\system32\msiexec.exe
MSI (c) (5C:B8) [09:39:21:366]: Resetting cached policy values
MSI (c) (5C:B8) [09:39:21:366]: Machine policy value 'Debug' is 0
MSI (c) (5C:B8) [09:39:21:366]: ******* RunEngine:
Product: C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe -runfromtemp -l0x0009 -removeonly
Action:
CommandLine: **********
MSI (c) (5C:B8) [09:39:21:382]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (5C:B8) [09:39:21:382]: Grabbed execution mutex.
MSI (c) (5C:B8) [09:39:21:397]: Cloaking enabled.
MSI (c) (5C:B8) [09:39:21:397]: Attempting to enable all disabled priveleges before calling Install on Server
MSI (c) (5C:B8) [09:39:21:413]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (D0:A0) [09:39:21:429]: Grabbed execution mutex.
MSI (s) (D0:DC) [09:39:21:429]: Resetting cached policy values
MSI (s) (D0:DC) [09:39:21:429]: Machine policy value 'Debug' is 0
MSI (s) (D0:DC) [09:39:21:429]: ******* RunEngine:
Product: C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe -runfromtemp -l0x0009 -removeonly
Action:
CommandLine: **********
MSI (s) (D0:DC) [09:39:21:429]: Note: 1: 2203 2: C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe -runfromtemp -l0x0009 -removeonly 3: -2147287038
MSI (s) (D0:DC) [09:39:21:429]: MainEngineThread is returning 2
MSI (c) (5C:B8) [09:39:21:429]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (5C:B8) [09:39:21:429]: MainEngineThread is returning 2
Verbose logging stopped: 6/11/2008 9:39:21
MSI (c) (5C:B8) [09:39:21:366]: Resetting cached policy values
MSI (c) (5C:B8) [09:39:21:366]: Machine policy value 'Debug' is 0
MSI (c) (5C:B8) [09:39:21:366]: ******* RunEngine:
Product: C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe -runfromtemp -l0x0009 -removeonly
Action:
CommandLine: **********
MSI (c) (5C:B8) [09:39:21:382]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (5C:B8) [09:39:21:382]: Grabbed execution mutex.
MSI (c) (5C:B8) [09:39:21:397]: Cloaking enabled.
MSI (c) (5C:B8) [09:39:21:397]: Attempting to enable all disabled priveleges before calling Install on Server
MSI (c) (5C:B8) [09:39:21:413]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (D0:A0) [09:39:21:429]: Grabbed execution mutex.
MSI (s) (D0:DC) [09:39:21:429]: Resetting cached policy values
MSI (s) (D0:DC) [09:39:21:429]: Machine policy value 'Debug' is 0
MSI (s) (D0:DC) [09:39:21:429]: ******* RunEngine:
Product: C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe -runfromtemp -l0x0009 -removeonly
Action:
CommandLine: **********
MSI (s) (D0:DC) [09:39:21:429]: Note: 1: 2203 2: C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe -runfromtemp -l0x0009 -removeonly 3: -2147287038
MSI (s) (D0:DC) [09:39:21:429]: MainEngineThread is returning 2
MSI (c) (5C:B8) [09:39:21:429]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (5C:B8) [09:39:21:429]: MainEngineThread is returning 2
Verbose logging stopped: 6/11/2008 9:39:21
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
09:06 AM
any idea ???
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
09:13 AM
Do I need a uninstall.iss file? If yes, then how to create it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
09:23 AM
This does not looks like a pure MSI package, rather a mix of InstallScript and MSI or an InstallScript project. Try creating the uninstall response file by running: setup.exe /r
The setup.iss file will be created under Windows folder. Copy it to the folder containing the setup.exe and rename it as uninstall.iss. Similarly, create a response file for installation too and rename it as install.iss.
To uninstall, run:
setup.exe /s /f1"\uninstall.iss"
To install, run:
setup.exe /s /f1"\install.iss"
HTH.
The setup.iss file will be created under Windows folder. Copy it to the folder containing the setup.exe and rename it as uninstall.iss. Similarly, create a response file for installation too and rename it as install.iss.
To uninstall, run:
setup.exe /s /f1"
To install, run:
setup.exe /s /f1"
HTH.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
09:32 AM
If I run the setup.exe /r command it simply takes me to a new installation page. So i will have two identicl file one for install and the other for uninstall.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
09:35 AM
If it is a windows installer file(msi), the iss file is not needed.
BTW, what is there in the 'UninstallString' registry?.
BTW, what is there in the 'UninstallString' registry?.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
09:52 AM
This is the value int he uninstallstring
C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe -runfromtemp -l0x0009 -removeonly
With this i have another question.
On different machine the GUID will change so how do i actually retireve this value in my silent installer.....or the silentUninstall file does it??
C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe -runfromtemp -l0x0009 -removeonly
With this i have another question.
On different machine the GUID will change so how do i actually retireve this value in my silent installer.....or the silentUninstall file does it??