Help needed regarding packaging
Hi all, I need help as i am new to this msi technology.
I have the requirement like this,
I have an MSI, upon clicking on that it will install silently.
The requirement is something like, i need to create an reverse MSI, upon clicking on that, software must be uninstalled silently.
Thanks in advance.
I have the requirement like this,
I have an MSI, upon clicking on that it will install silently.
The requirement is something like, i need to create an reverse MSI, upon clicking on that, software must be uninstalled silently.
Thanks in advance.
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
Can I politely suggest that you continue your reading about MSI/Windows Installer technology? An MSI is intrinsicly able to reverse its actions: you don't need another one to do that.
To uninstall silently, you need to add the relevant switch to a command line, e.g.
MSIExec /X [path_to_and_name_of_MSI] /QN
or
MSIExec /X [ProductCode] /QN
Have a look at the Windows Installer help file MSI.CHM which will have been installed with your authoring tool. Search for '/Q' and select the third topic found 'Command Line Options'.
If you want that to happen when the MSI is double-clicked, you need to edit the 'UninstallString' entry in the registry to add the switch. That entry is stored at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]
To uninstall silently, you need to add the relevant switch to a command line, e.g.
MSIExec /X [path_to_and_name_of_MSI] /QN
or
MSIExec /X [ProductCode] /QN
Have a look at the Windows Installer help file MSI.CHM which will have been installed with your authoring tool. Search for '/Q' and select the third topic found 'Command Line Options'.
If you want that to happen when the MSI is double-clicked, you need to edit the 'UninstallString' entry in the registry to add the switch. That entry is stored at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]
Posted by:
avherur
16 years ago
Posted by:
anonymous_9363
16 years ago
Posted by:
dunnpy
16 years ago
avherur,
I think you've missed the point. "An MSI is intrinsicly able to reverse its actions: you don't need another one to do that."
If you have an MSI file - "app.msi" - then to install silently you would execute the command:
msiexec /i app.msi /qn
If the MSI file is already installed, and you wish to remove it from a machine then you execute (As VBScab stated):
msiexec /x app.msi /qn
Or use the [Product Code] - as also stated above.
It appears that your client does not understand Windows Installer technology.
I suggest you have a look at the help file (as suggested previously), and perform some of your own testing.
Hope this clears things up,
Dunnpy
I think you've missed the point. "An MSI is intrinsicly able to reverse its actions: you don't need another one to do that."
If you have an MSI file - "app.msi" - then to install silently you would execute the command:
msiexec /i app.msi /qn
If the MSI file is already installed, and you wish to remove it from a machine then you execute (As VBScab stated):
msiexec /x app.msi /qn
Or use the [Product Code] - as also stated above.
It appears that your client does not understand Windows Installer technology.
I suggest you have a look at the help file (as suggested previously), and perform some of your own testing.
Hope this clears things up,
Dunnpy
Posted by:
nheim
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.