Product code different in project than msi

Got a problem you cannot solve? Try here.
Post Reply
ccamp31
Posts: 9
Joined: Thu Oct 06, 2011 11:59 am

Product code different in project than msi

Post by ccamp31 »

Hello,

I have an IA project where it lists a product code in the 'Project Properties' section. When I generate an .msi using the Group Policy Wizard, the .msi has a completely different product code.

The issue is, when I install the .msi, it creates an uninstall key for both product codes (the one associated with the project, and the one for the .msi).

So my question is:

a) Is this a bug in InstallAware?
b) If not, how can I prevent my .msi from installing both product codes into the uninstall key in the registry?

Cheers,

Chris
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Product code different in project than msi

Post by giaviv »

Hi Chris,

This is actually not a bug - your product code does exist in the inner MSI, which is wrapped by an EXE, which is wrapped by the group policy MSI.
Where is this uninstall key being created?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
ccamp31
Posts: 9
Joined: Thu Oct 06, 2011 11:59 am

Re: Product code different in project than msi

Post by ccamp31 »

Both uninstall keys were installed to the registry at (Windows 7 target machine):

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

I was able to get the installer to only install one key, when I inserted the following statement in my MSI code:

Set Variable NATIVE_ENGINE to TRUE

Now I only see one uninstall key in the registry - are there any downsides to activating the native engine?

Cheers,

C.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Product code different in project than msi

Post by giaviv »

Not at all, to the contrary - the Native Engine is much more powerful than the Windows Installer one.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
ccamp31
Posts: 9
Joined: Thu Oct 06, 2011 11:59 am

Re: Product code different in project than msi

Post by ccamp31 »

giaviv wrote:Not at all, to the contrary - the Native Engine is much more powerful than the Windows Installer one.
I just noticed a problem with my installer once I turned the Native Engine on - it no longer installs my Windows Install Service. If I don't set the Native Engine to TRUE, the service installs without issue.

Do you know why this is happening?

Cheers,

Chris
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Product code different in project than msi

Post by giaviv »

Chris,

This should be happening - are you able to check if turning the native engine off right before installing the service, and turning it back on after solves the issue?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Product code different in project than msi

Post by giaviv »

Chris,

This should be happening - are you able to check if turning the native engine off right before installing the service, and turning it back on after solves the issue?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
ccamp31
Posts: 9
Joined: Thu Oct 06, 2011 11:59 am

Re: Product code different in project than msi

Post by ccamp31 »

Turning it off only works if I don't turn it back on before the last step (Apply Install). However, by leaving it off when it reaches 'Apply Install', I have other issues (for example, it installs 2 product codes in the uninstall key in the registry - one for the inner msi, and one for the outer).

Why would having the Native Engine turned on disable the ability to install a service? Wouldn't that be considered something fairly standard?

Chris
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Product code different in project than msi

Post by giaviv »

Chris,

It should work with the native engine too, but I am trying to see if the native engine is the issue or not.
You can try calling apply install more than once - are you able to narrow the problem down to the native engine?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply