I am writing an app that is for Windows 2003 Server and everything has been going well until I try and install it. I have to edit an INI file in the windows folder but instead of returning c:\windows in %WINDIR% setup factory is returning c:\Documents and Settings\Administrator\Windows (which allows programs to write into the windows folder even as a standard user as it isn't the "real" windows folder i.e. more apps run)
The environment variable WINDIR is set to c:\windows if I type set at a command prompt.
If I run "change user /install" before running the setup program then the correct value is obtained by Setup Factory. I have tried running "change user /install" from within setup factory and the machine does go into install mode, but by that time Setup Factory has already "retrieved" the value of %WINDIR% and it is incorrect. Here is the code I am running.
Assign Value (%phpini% = %WinDir%\php.ini)
Read File Information (%phpiniexists% = Existence of %phpini%)
IF (%phpiniexists% = FALSE)
Show Message Box (File not found: '%phpini%. Aborting Setup.)
Abort Setup
END IF
Modify INI File (Set Value: %phpini% [PHP]: register_globals = off)
Does anyone know how to force Setup Factory to obtain the correct WINDIR or check that is in install mode. I could say that the user installing the software must put the machine into install mode, but someone is always going to get it wrong.
Any ideas anyone?
Jinjoid
The environment variable WINDIR is set to c:\windows if I type set at a command prompt.
If I run "change user /install" before running the setup program then the correct value is obtained by Setup Factory. I have tried running "change user /install" from within setup factory and the machine does go into install mode, but by that time Setup Factory has already "retrieved" the value of %WINDIR% and it is incorrect. Here is the code I am running.
Assign Value (%phpini% = %WinDir%\php.ini)
Read File Information (%phpiniexists% = Existence of %phpini%)
IF (%phpiniexists% = FALSE)
Show Message Box (File not found: '%phpini%. Aborting Setup.)
Abort Setup
END IF
Modify INI File (Set Value: %phpini% [PHP]: register_globals = off)
Does anyone know how to force Setup Factory to obtain the correct WINDIR or check that is in install mode. I could say that the user installing the software must put the machine into install mode, but someone is always going to get it wrong.
Any ideas anyone?
Jinjoid
Comment