Get System Setting Windows Vista fails

Got a problem you cannot solve? Try here.
tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Get System Setting Windows Vista fails

Postby tosch » Tue Dec 13, 2016 7:46 am

at the beginning of my install script I have a 'Get System Setting Windows Vista into...' check because our application only works on Vista or newer.
On some Windows 7 machines this check fails.
Any idea why?

Thomas

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Get System Setting Windows Vista fails

Postby FrancescoT » Tue Dec 13, 2016 1:11 pm

Dear Thomas,

honestly, it's very very strange that "Get System Setting Windows ...." fails to get target OS capabilities. I never had a similar issue.

It must be something else at the root of your issue.

You may try to create a dummy project from scratch and where just a "Get System Setting Windows ...." call is present.
Then you may verify if you are still able to replicate the same issue running the dummy setup.exe.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Get System Setting Windows Vista fails

Postby tosch » Fri Dec 16, 2016 3:09 am

ok I'll do that.
This only happens on maybe 5 out of 1000 systems but is still annoying.
I will let you know the results.

Thomas

tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Get System Setting Windows Vista fails

Postby tosch » Mon Dec 19, 2016 2:35 am

Everything works fine on a client machine where the problem occurs with a test setup that checks for Windows Vista.

I have noted that the problem only occurs when we start the setup from within our application. If we start it from a folder it works fine.
We normally check for a new version on a ftp server, download a zip file, extract the setup program and start it. But this should make no difference in checking for Windows Vista imho.

Thomas

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Get System Setting Windows Vista fails

Postby FrancescoT » Mon Dec 19, 2016 12:56 pm

Dear Thomas,

the source of the issue cannot be the fact that you are executing the setup from from your application.

Eventually and because you are running your setup as from command line, it may be possible, that your setup script does something different when executed from command line.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Get System Setting Windows Vista fails

Postby tosch » Thu Dec 22, 2016 8:18 am

Hi Francesco,
I have done some more testing on a client machine where the problem occurs.
In the script I read the OS and SP level. The OS Level shows as Windows XP, see screenshot below.

SetupErrorWinXP.jpg
SetupErrorWinXP.jpg (40.5 KiB) Viewed 7186 times


Here are the first few lines of the install script where the problem occurs:

Setupscript.jpg
Setupscript.jpg (75.37 KiB) Viewed 7186 times


I ran WINVER and this definitely gave me Win7, SP1.
When I start the installation from the commandline it correctly reports Win7. I have now changed the script so the user can still continue, but it's only a temporary solution.

Any ideas?

Thomas

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Get System Setting Windows Vista fails

Postby FrancescoT » Thu Dec 22, 2016 10:26 am

Dear Thomas,

very strange indeed!

Which IA version are you using?
How do you execute your setup from your application?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Get System Setting Windows Vista fails

Postby tosch » Fri Dec 23, 2016 1:41 am

I'm using InstallAware Studio Admin X5, build 8.4.2016

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Get System Setting Windows Vista fails

Postby FrancescoT » Fri Dec 23, 2016 6:33 am

Dear Thomas,

you missed to reply my second question...
- How do you execute your setup from your application?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Get System Setting Windows Vista fails

Postby tosch » Fri Dec 23, 2016 7:39 am

sorry about that.
I'm using the ShellExcecuteEx and pass a ShellExecuteInfo parameter.
In ShellExecuteInfo I have set:
lpFile = Setuppath\setupname
lpParameters = any parameters, for example a switch to run a silent install. On the client where I tested no parameters where passed
lpVerb = 'runas'
nShow = SW_SHOW

Thomas

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Get System Setting Windows Vista fails

Postby FrancescoT » Fri Dec 23, 2016 11:27 am

Dear Thomas,

how is it resolved the " Setuppath\setupname" lpFile parameter?

As first I suggest you to update your X5 product to the latest version currently available.
*Please follow the notes available with the following link.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10831

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Get System Setting Windows Vista fails

Postby tosch » Tue Dec 27, 2016 5:02 am

Setuppath is a tempfolder, normally the users tempfolder which we get using IO.Path.GetTempPath.
Setupname is the name of our setup, which is downloaded from out ftp server, SetupNavigatorXXX.exe where XXX is the current version.

Thomas

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Get System Setting Windows Vista fails

Postby FrancescoT » Tue Dec 27, 2016 1:22 pm

Dear Thomas,

did you have any chance to run a test using the latest X5 update?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Get System Setting Windows Vista fails

Postby tosch » Thu Dec 29, 2016 11:10 am

not yet, the client where the problem occurs seems to have a few days off.
I will let you know as soon as I have some new results.

Thomas

tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Get System Setting Windows Vista fails

Postby tosch » Wed Feb 15, 2017 9:14 am

Since installing the latest realease of InstallAware I did not hear anything from my clients about the same error coming up again. The issue seems to be resolved.

Thomas


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 30 guests