Hi,

My requirement is to uninstall a old version/s using the MSI GUID/s before installing the new applicaiton.

I have a custom action which will take care of uninstallation using the MSI GUID manually.

I am facing a problem where to place this custom action in MSI. I would like to run this custom action before the actual MSI installtion.

Thanks,
Ramu
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Try the upgrade table - it's there for just this situation.

Thanks,

Dunnpy
Answered 09/09/2010 by: dunnpy
Red Belt

Please log in to comment
0
I have some problem in using the upgrade table.
Answered 09/09/2010 by: ramu_ch
Orange Belt

Please log in to comment
0
while upgrading from old version to existing version, the old version is prompting for user interaction. we dont want any user interaction.

That is the reason i couldn't able to use upgrade table.
Answered 09/09/2010 by: ramu_ch
Orange Belt

Please log in to comment
0
while upgrading from old version to existing version, the old version is prompting for user interaction. we dont want any user interaction.

That is the reason i couldn't able to use upgrade table.


what's the difference then with doing an uninstall manually? are you using command line parameters?
Answered 09/09/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
I am suppresing the prompt while uninstall. I am adding one additional property to the custom action for uninstall.

Here is the command line i have used in wise script.
msiexec /X {ProductCode} TSC_DATA_STORE=0 /qb
Answered 09/09/2010 by: ramu_ch
Orange Belt

Please log in to comment
0
if u will put Upgrade code of old package into the new one, it will automatically remove the previous and install the new one.
Answered 09/09/2010 by: er.hsingh
Orange Senior Belt

Please log in to comment
0
Here is the command line i have used in wise script.
msiexec /X {ProductCode} TSC_DATA_STORE=0 /qb


if you want to make sure the parameter gets passed to the previous version, you could try changing the UninstallString for the application in the registry at HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.

I'm not 100% sure if this will work though, since it might be this only gets used when you manually uninstall an application in the Add/Remove Programs window.

Another option is to look for the cached copy of the MSI in the Windows\Installer folder, and replacing it with a version of the MSI where the property is set to 0.

I suggest you try option 1 first since it's alot simpler. If that doesn't work we'll look into option 2 [:)]

PJ
Answered 09/10/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
Hi,

Since two MSI-based install processes cannot run at the same time, you can run your custom action only in InstallUISequence. It doesn't really matter after what standard action. I usually place them right before ExecuteAction so it looks like it's part of the install process.

Using "Upgrade" table is a solution, but you cannot set TSC_DATA_STORE this way.

Regards,
John
Answered 09/10/2010 by: john.pirvu
Senior Yellow Belt

Please log in to comment
0
you can run your custom action only in InstallUISequence.You should never run CAs of this nature in the UI sequence, since if the installer chooses to run it silently (or it gets deployed by something like SMS/SCCM) the CA will never execute, something which you yourself allude to here!
Answered 09/10/2010 by: VBScab
Red Belt

Please log in to comment
0
Hi Ramu,
which part of this command line is needed to suppress the prompt?
TSC_DATA_STORE=0 OR /qb ?
Regards, Nick
Answered 09/10/2010 by: nheim
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity