NEWINSTANCE returns inaccurate value

Got a problem you cannot solve? Try here.
Post Reply
tltaylor76
Posts: 76
Joined: Mon Nov 06, 2006 2:07 pm
Location: Texas
Contact:

NEWINSTANCE returns inaccurate value

Post by tltaylor76 »

I have heard from our users in the field that this has been happening but until now have not reproduced this. I have now reproduced this on three different servers running Windows 2003 Server.

Our installation supports multiple instances and so we have relied on the NEWINSTANCE variable to return the accurate value. I already have an instance installed on the 2003 server and when I run the installation again, the NEWINSTANCE property is set to FALSE when it should be TRUE. I have reproduced this on our development environment and have installed InstallAware on the server so I could debug the MSI code to see the values....and sure enough, it fails.

How does the NEWINSTANCE variable get set and what is the criteria that you test on?
Trent L. Taylor
Sr. Software Developer
StrataFrame Application Framework
www.strataframe.net
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

I believe that if the product codes match, NEWINSTANCE should contain TRUE, at least that's how it works for me.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
tltaylor76
Posts: 76
Joined: Mon Nov 06, 2006 2:07 pm
Location: Texas
Contact:

Post by tltaylor76 »

Yes, this is how it works most of the time. I wrote a work around so that I did not have to 100% rely on the setting of this variable. Most machines this works on fine, but in certain environments, specifically servers with one instance already installed, this seems to get a bit questionable....at least per my experience and it could be something that I have done. But I have combed over my install over and over again to make sure that the Transform Instance does not get called on the first installation as I think that this would cause the problem since the program would never be installed with the original Product Code. But at any rate, I have it working. Thanks for your input.
Trent L. Taylor
Sr. Software Developer
StrataFrame Application Framework
www.strataframe.net
Amir_Kavehrad
Posts: 3
Joined: Fri Nov 21, 2008 12:50 pm

Post by Amir_Kavehrad »

Hi there,

I think that I am seeing the same issue with a select few Windows 2003 servers as well. What was the workaround that ended up working for you?

Thanks!
[email protected]
Posts: 55
Joined: Wed Mar 11, 2009 5:26 pm
Contact:

Post by [email protected] »

I believe that if you install the first instance "A", then install instance "B", then uninstall instance "A", it will look to the installer that no instances are currently installed. If you then run the setup again, NEWINSTANCE will be false.

Could this be what your users are seeing?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Yes, that's exactly right!
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Re: NEWINSTANCE returns inaccurate value

Post by sdeschenes »

According to jimo, the product codes need to match. Does the installer look in the registry for the product code of the previous installation or does it look somewhere else?
Post Reply