this is a very very strange problem that has haunted me for months now. I decided to finally find the cause of it. Here´s the problem.
I am calling the following cmd file in Wihu during software installation AFTER user installation at which time I am creating the user Alexander as a default user. So as far as I know, the software installation that follows will be installed as that user. right or wrong ?
Now, the part of the ini that calls the cmd looks like this:
CODE
Description.10=Trillian Einstellungen
command.10=CMD /C "%INIDIR%\..\..\Einstellungen\Trillian\silent_install.cmd"
workdir.10="%INIDIR%\..\..\Einstellungen\Trillian"
selected.10=1
command.10=CMD /C "%INIDIR%\..\..\Einstellungen\Trillian\silent_install.cmd"
workdir.10="%INIDIR%\..\..\Einstellungen\Trillian"
selected.10=1
The silent_install.cmd looks like this:
CODE
@echo off
if exist "%WINDIR%\system32\cmdow.exe" cmdow @ /HID
copy /Y .\profiles.ini "%PROGRAMFILES%\Trillian\users\global\"
if exist "D:\Alexander\Desktop\Trillian.lnk" del "D:\Alexander\Desktop\Trillian.lnk"
copy /Y "%AllUsersProfile%\Startm~1\Programme\Internet\Trillian Pro 3.lnk" "%USERPROFILE%\Startm~1\Programme\Autostart\"
if exist "%WINDIR%\system32\cmdow.exe" cmdow @ /HID
copy /Y .\profiles.ini "%PROGRAMFILES%\Trillian\users\global\"
if exist "D:\Alexander\Desktop\Trillian.lnk" del "D:\Alexander\Desktop\Trillian.lnk"
copy /Y "%AllUsersProfile%\Startm~1\Programme\Internet\Trillian Pro 3.lnk" "%USERPROFILE%\Startm~1\Programme\Autostart\"
Now please take a look at what happened to the variable "%Userprofile%" during installation in Wihu: see pic !
As you can see, the variable will be resolved as "Default User" instead of "Alexander". Why´s that ?
I am having this problem with 5 of my programs that I install. The rest installs fine. Is this a problem in Wihu or some other problem ? I wouldn´t know where else to look for that though ...
Thanks for your help !
Alex