VMware Horizon Community
tutmos
Contributor
Contributor

Error uninstalling .MSI packages installed with INSTALLDIR=xxx

After installing an .MSI package created with ThinApp 4.5.0 to a custom (non-default location) using

msiexec.exe /i Office2007Std@x86@en@2.msi INSTALLDIR=C:\foo

the following thinreg's error message pops up when I try to uninstall the package through the "Add/Remove Programs"

and real files (.dat and .exe shortcuts) are not removed from the file system.

At the same time, the virtual package is no more in the ARP list.

Tested on Win 7 64 and Win XP 32.

Am I doing something wrong?

Thanks

Reply
0 Kudos
6 Replies
admin
Immortal
Immortal

I can reproduce this and have opened a bug report for it.

Reply
0 Kudos
tutmos
Contributor
Contributor

Are there any workarounds I could use now?

Some msiexec options or configuration parameters in the Package.ini?

Reply
0 Kudos
admin
Immortal
Immortal

Well, when you know the target installation dir at package build time, you can use

MSIInstallDirectory=c:\foo

I've just tested that to make sure it installs and uninstalls correctly Smiley Happy

Reply
0 Kudos
tutmos
Contributor
Contributor

I doubt this is a solution I am looking for Smiley Happy

Anyway, a few more questions.

Can this problem be fixed by manually updating the generated .msi (say, changing the CustomAction/ThinUnregAll property using Orca or InstEd)?

Or even more, can this be done in template.msi?

Reply
0 Kudos
admin
Immortal
Immortal

Unfortunately, you can't edit the generated .msi using Orca. Sorry, I can't think of a good workaround. This will be fixed in a future release though.

Reply
0 Kudos
SergioB
Contributor
Contributor

Hello All

you also can edit the Package.ini at the end of the capturing for the correct uninstall path it would be located at the

;----


MSI Parameters -


;MSIInstallDirectory="here enter your destination Folder like D:\XY"

save and Build the MSI.

worked for me on multiple MSI's.

cheers,

Sergio

Reply
0 Kudos