WINDIR in Windows 2008 R2 Terminal server

Got a problem you cannot solve? Try here.
rbarat
Posts: 2
Joined: Wed Apr 15, 2015 3:25 am

WINDIR in Windows 2008 R2 Terminal server

Postby rbarat » Wed Apr 15, 2015 3:54 am

While running the installation on Windows 2008 R2 with Remote desktop services (Terminal Server) the WINDIR and ALLWINDIR varibales are wrong. They return both "C:\USERS\<user>\Windows" instead of "C:\Windows".

It is done by your automatic generated commands:

Code: Select all

          Get Folder location System->Windows Directory into WINDIR
          Get Common Folder Location System->Windows Directory in ALLWINDIR
     


Please notice that your built in scripts which check if components exist (like checkvc10_x86) refer to $WINDIR$\WinSxS and never find the installed components which are installed on "C:\Windows\WinSxS".

Raffi

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

Re: WINDIR in Windows 2008 R2 Terminal server

Postby FrancescoT » Wed Apr 15, 2015 11:58 am

Dear Raffi,

honestly I suppose there is something wrong with your code.

The default script code generated by IA, it's instead;

Code: Select all

Get Folder Location System->Windows Directory into WINDIR
Get Folder Location System->System Directory into WINSYSDIR

The same as IA Clipboard Format;

Code: Select all

~InstallAware Clipboard Data~
~Get Folder Location~
~{A34B113B-2347-40D3-B20B-575F114BA95A}~
~WINSYSDIR~
~23~
~FALSE~
~Get Folder Location~
~{FD92E8F0-D7DA-44A0-A16C-7B621AEA0F2D}~
~WINDIR~
~25~
~FALSE~


Anyway, using the above code both target system's folders are returned correctly.

Hope this helps you.

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

rbarat
Posts: 2
Joined: Wed Apr 15, 2015 3:25 am

Re: WINDIR in Windows 2008 R2 Terminal server

Postby rbarat » Wed Apr 15, 2015 2:42 pm

Hi,

Sorry about my mistake. I typed the code manually and did not type it correctly.
Our code should be correct because it works fine in our complex installation project.
The installation works fine and and was already used in many operating system (XP, 2003, 7 x86, 7 x64, 2008, 2008 R2 and 2012).

It includes the default code.

Code: Select all

      Get Folder Location System->Windows Directory into WINDIR
      Get Folder Location System->System Directory into WINSYSDIR


WINSYSDIR in C:\Windows\System32 or C:\Windows\SysWOW64 which is fine

But we have a problem with WINDIR.
In most of the cases its value is OK (C:\Windows).
But in Windows 2008 R2 which is a Remote Desktop Server (terminal server) the value of WINDIR is different
It is C:\Users\<user name>\Windows

We tried to use the common Windows variable which you provide But it has the same value as WINDIR
We added it from Desigen \ Files \ Add system Folder.

Code: Select all

Get Common Folder Location System->Windows Directory into ALLWINDIR


Attached is also the clipbaord code

Code: Select all

~InstallAware Clipboard Data~
~Get Folder Location~
~{794173E2-153D-4936-9B36-82BC59F65A9C}~
~ALLWINDIR~
~25~
~TRUE~
~Get Folder Location~
~{EB87E659-BED5-4A7C-A3AB-2A5E0FD47ECD}~
~WINSYSDIR~
~23~
~FALSE~
~Get Folder Location~
~{8BB7B33F-7D86-440C-89D0-8E769A03D2AB}~
~WINDIR~
~25~
~FALSE~


Regards

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

Re: WINDIR in Windows 2008 R2 Terminal server

Postby FrancescoT » Thu Apr 16, 2015 11:08 am

Dear Raffi,

I just tried once again, with creating a new blak project from scratch that only uses the following code.

Code: Select all

Set Variable WINDIR to
Set Variable WINSYSDIR to
 
Get Folder Location System->Windows Directory into WINDIR
Get Folder Location System->System Directory into WINSYSDIR
 
MessageBox: Debug, WINDIR=$WINDIR$$NEWLINE$WINSYSDIR=$WINSYSDIR$

... and these are the results.
windir_on_2008r2.png
windir_on_2008r2.png (73.7 KiB) Viewed 4616 times


Attached you find the project along its executable (I used IA X2 ver. 19.08).

Hope this helps you.

Regards
Attachments
blank.rar
(3.81 MiB) Downloaded 342 times
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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 75 guests