NEWINSTANCE returns inaccurate value

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

NEWINSTANCE returns inaccurate value

Postby tltaylor76 » Wed Jun 06, 2007 11:20 am

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:

Postby jimo » Sat Jun 09, 2007 12:47 pm

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:

Postby tltaylor76 » Mon Jun 11, 2007 8:46 am

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

Postby Amir_Kavehrad » Tue Dec 16, 2008 3:48 pm

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!

jay@bplogix.com
Posts: 55
Joined: Wed Mar 11, 2009 5:26 pm
Contact:

Postby jay@bplogix.com » Thu Mar 12, 2009 12:53 pm

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:

Postby MichaelNesmith » Thu Mar 12, 2009 1:30 pm

Yes, that's exactly right!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
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

Postby sdeschenes » Fri May 14, 2010 2:32 pm

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?


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 12 guests