Results 1 to 9 of 9

Thread: [RESOLVED] Randem - Help please

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Resolved [RESOLVED] Randem - Help please

    Randem


    The script you kindly created for me some days ago for inclusion into an inno script


    [CODE]
    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

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Randem - Help please

    Yes, I added that code (Result := 'C:\Users\Public') in later on in the thread I believe.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: Randem - Help please

    Many thanks Again!

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: [RESOLVED] Randem - Help please

    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?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: [RESOLVED] Randem - Help please

    No XP, which is why I am asking (guessing), I could do with one computer for each version of Windows!

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: [RESOLVED] Randem - Help please

    "I could do with one computer for each version of Windows!"

    ?????

    Do you mean use the code?

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: [RESOLVED] Randem - Help please

    Actually here was the code to include the usersname:
    [code]
    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;

  8. #8
    Addicted Member adamlonsdale's Avatar
    Join Date
    Oct 2005
    Posts
    210

    Re: [RESOLVED] Randem - Help please

    set.txt:

    Code:
    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

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: [RESOLVED] Randem - Help please

    Thanks, Just needed to check some environmental values.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width