Click to See Complete Forum and Search --> : [RESOLVED] Randem - Help please
JohnSavage
May 25th, 2007, 12:01 PM
Randem
The script you kindly created for me some days ago for inclusion into an inno script
[Code]
var s: Integer;
function GetAppFolder(Param: String): String;
begin
s := InstallOnThisVersion('0','6');
if s = 0 then
Result := 'C:\Users'
else
Result := ExpandConstant('{pf}');
end;
Should the line “ Result := 'C:\Users' ”
Actually be Result := 'C:\Users\Public'
That is should all applications be installed on Vista machines like this C:\Users\Public\MyApp
randem
May 25th, 2007, 02:10 PM
Yes, I added that code (Result := 'C:\Users\Public') in later on in the thread I believe.
JohnSavage
May 25th, 2007, 02:14 PM
Many thanks Again!:)
randem
May 25th, 2007, 02:18 PM
Are you running on Vista?
If so could you open a DOS box (cmd prompt) then do
Set > set.txt
then post the set.txt file?
JohnSavage
May 25th, 2007, 02:21 PM
No XP, which is why I am asking (guessing), I could do with one computer for each version of Windows!
randem
May 25th, 2007, 02:30 PM
"I could do with one computer for each version of Windows!"
?????
Do you mean use the code?
randem
May 25th, 2007, 03:35 PM
Actually here was the code to include the usersname:
[Code]
var s: Integer;
function GetAppFolder(Param: String): String;
begin
s := InstallOnThisVersion('0','6');
if s = 0 then
Result := 'C:\Users\Public\' + ExpandConstant('{username}')
else
Result := ExpandConstant('{pf}');
end;
adamlonsdale
May 25th, 2007, 04:48 PM
set.txt:
ALLUSERSPROFILE=D:\ProgramData
APPDATA=D:\Users\Adam\AppData\Roaming
CLASSPATH=SET CLASSPATH=C:\Program Files\Java\jdk1.5.0_07\bin;.;D:\Program Files\Java\jre1.6.0\lib\ext\QTJava.zip;
CommonProgramFiles=D:\Program Files\Common Files
COMPUTERNAME=ADAM-PC
ComSpec=D:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=D:
HOMEPATH=\Users\Adam
include=D:\Program Files\Microsoft Visual Studio\VC98\atl\include;D:\Program Files\Microsoft Visual Studio\VC98\mfc\include;D:\Program Files\Microsoft Visual Studio\VC98\include
lib=D:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;D:\Program Files\Microsoft Visual Studio\VC98\lib
LOCALAPPDATA=D:\Users\Adam\AppData\Local
LOGONSERVER=\\ADAM-PC
MSDevDir=D:\Program Files\Microsoft Visual Studio\Common\MSDev98
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=D:\Windows\system32;D:\Windows;D:\Windows\System32\Wbem;D:\Program Files\QuickTime\QTSystem\;D:\Program Files\Common Files\Sage SBD\;D:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;D:\Program Files\Microsoft Visual Studio\Common\Tools;D:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Java\jdk1.5.0_07\bin;C:\Program Files\Java\jre1.5.0_05\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0d08
ProgramData=D:\ProgramData
ProgramFiles=D:\Program Files
PROMPT=$P$G
PUBLIC=D:\Users\Public
QTJAVA=D:\Program Files\Java\jre1.6.0\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=D:
SystemRoot=D:\Windows
TEMP=D:\Users\Adam\AppData\Local\Temp
TMP=D:\Users\Adam\AppData\Local\Temp
USERDOMAIN=Adam-PC
USERNAME=Adam
USERPROFILE=D:\Users\Adam
windir=D:\Windows
randem
May 25th, 2007, 08:30 PM
Thanks, Just needed to check some environmental values.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.