Page 1 of 1
Get System Setting Windows Vista fails
Posted: Tue Dec 13, 2016 7:46 am
by tosch
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
Re: Get System Setting Windows Vista fails
Posted: Tue Dec 13, 2016 1:11 pm
by FrancescoT
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
Re: Get System Setting Windows Vista fails
Posted: Fri Dec 16, 2016 3:09 am
by tosch
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
Re: Get System Setting Windows Vista fails
Posted: Mon Dec 19, 2016 2:35 am
by tosch
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
Re: Get System Setting Windows Vista fails
Posted: Mon Dec 19, 2016 12:56 pm
by FrancescoT
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
Re: Get System Setting Windows Vista fails
Posted: Thu Dec 22, 2016 8:18 am
by tosch
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 (40.5 KiB) Viewed 8600 times
Here are the first few lines of the install script where the problem occurs:

- Setupscript.jpg (75.37 KiB) Viewed 8600 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
Re: Get System Setting Windows Vista fails
Posted: Thu Dec 22, 2016 10:26 am
by FrancescoT
Dear Thomas,
very strange indeed!
Which IA version are you using?
How do you execute your setup from your application?
Regards
Re: Get System Setting Windows Vista fails
Posted: Fri Dec 23, 2016 1:41 am
by tosch
I'm using InstallAware Studio Admin X5, build 8.4.2016
Re: Get System Setting Windows Vista fails
Posted: Fri Dec 23, 2016 6:33 am
by FrancescoT
Dear Thomas,
you missed to reply my second question...
- How do you execute your setup from your application?
Regards
Re: Get System Setting Windows Vista fails
Posted: Fri Dec 23, 2016 7:39 am
by tosch
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
Re: Get System Setting Windows Vista fails
Posted: Fri Dec 23, 2016 11:27 am
by FrancescoT
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=10831Regards
Re: Get System Setting Windows Vista fails
Posted: Tue Dec 27, 2016 5:02 am
by tosch
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
Re: Get System Setting Windows Vista fails
Posted: Tue Dec 27, 2016 1:22 pm
by FrancescoT
Dear Thomas,
did you have any chance to run a test using the latest X5 update?
Regards
Re: Get System Setting Windows Vista fails
Posted: Thu Dec 29, 2016 11:10 am
by tosch
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
Re: Get System Setting Windows Vista fails
Posted: Wed Feb 15, 2017 9:14 am
by tosch
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