Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21
  1. #1
    Join Date
    Sep 2007
    Posts
    8

    Trying to set up a files to install to %userprofile%

    I'm trying to install 2 files to C:\Documents and Settings\william rader\.yajhfc but it cannont be my name william rader. Not everyone has that path on there machine so I need to use %USERPROFILE% so it automatically goes to folder and makes the folder .yajhfc. Everytime I go to install it, it tells me that the folder cannot be created. This is where our online fax machine looks for its settings at and I need help on how to make this work Please Help Me

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    where do you define %userprofile%?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Sep 2007
    Posts
    8

    Windows XP Variable

    1st I defined it in session variables and %USERPROFILE% is a variable automatically created by windows xp so if i said %yajhfc% and the path is %USERPROFILE%\.yajhfc it should install it to the documents and settings folder under there name correct?

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    Quote Originally Posted by tarheels2786 View Post
    1st I defined it in session variables and %USERPROFILE% is a variable automatically created by windows xp so if i said %yajhfc% and the path is %USERPROFILE%\.yajhfc it should install it to the documents and settings folder under there name correct?
    Environment variables are not the same as session variables.

    You would need to read in userprofile from the registry & assign it to a session variable in your "on startup" code or somewhere along the lines.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Sep 2007
    Posts
    8

    How

    How would I Do that then because what i'm trying to do is install the setup files back to the original place where they are installed from the real program which is in c:\documents and settings\william rader\.yajhfc but no all my other employees have my name they use there own logon information can you walk me through step by step.

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    • you need to read the registry (that's where environment variables are stored) See the Registry. actions
    • You need to assign that vaule to your %USERPROFILE% Session Variable. See the SessionVar. actions.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  7. #7
    Join Date
    Sep 2007
    Posts
    8

    So

    So I have to make a session variable and set my variable to the registry because I already made a session variable. Correct

  8. #8
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    Quote Originally Posted by tarheels2786 View Post
    So I have to make a session variable and set my variable to the registry because I already made a session variable. Correct
    what?

    so you already have a SESSIONVARIABLE created called %USERPROFILE%?
    This is NOT what you'd see in dos/cmd where you'd say "echo %userprofile%

    What is the line that you are using to create your sessionvariable?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  9. #9
    Join Date
    Sep 2007
    Posts
    8

    rep

    under settings / settings variables in setup factory 7.0 custom its called %yajhfc% and the path is %USERPROFILE%\.yajhfc

  10. #10
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    Quote Originally Posted by tarheels2786 View Post
    under settings / settings variables in setup factory 7.0 custom its called %yajhfc% and the path is %USERPROFILE%\.yajhfc
    so where do you define %USERPROFILE%????


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  11. #11
    Join Date
    Sep 2007
    Posts
    8

    its just like the %MyDocumentsFolder%

    its just like the %MyDocumentsFolder% i need 1 like that but not all the way to mydocuments i need it to stop right when it goes to your name no further. Walk me through the steps so i can recreated the varable

  12. #12
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Use this code to get that value:

    Code:
    USERPROFILE = Shell.GetFolder(40);
    SessionVar.Set("%USERPROFILE%", USERPROFILE);
    You will then have the correct variable set

    Adam Kapilik

  13. #13
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    Quote Originally Posted by tarheels2786 View Post
    its just like the %MyDocumentsFolder% i need 1 like that but not all the way to mydocuments i need it to stop right when it goes to your name no further. Walk me through the steps so i can recreated the varable
    No, it's not like that -- mydocumentsfolder is a PREDEFINED sessionvar -- userprofile is not.

    DO NOT CONFUSE ENVIRONMENT VARIABLES WITH SESSIONVARIABLES!!!


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  14. #14
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    Quote Originally Posted by Adam View Post
    Use this code to get that value:

    Code:
    USERPROFILE = Shell.GetFolder(40);
    SessionVar.Set("%USERPROFILE%", USERPROFILE);
    You will then have the correct variable set

    Adam Kapilik
    Not to mention that he'll need to move his "yggkdk" sessionvar definition out of the sessionvariable section and create it after creating userprofile.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  15. #15
    Join Date
    Sep 2007
    Posts
    8

    startup

    do I use this under action startup or where do i put this code at? sorry i'm new at this and I have it all done just this one part.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Launching an existing set of files during the install
    By kram in forum Setup Factory 7.0
    Replies: 1
    Last Post: 08-28-2006, 09:26 AM
  2. HOWTO: Download and Install Files from the Web
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-23-2002, 01:16 PM
  3. HOWTO: Conditionally Install Files Based on OS
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 03:03 PM
  4. INFO: How to Set the Default Application Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 12:02 PM
  5. HOWTO: Install Files to the Windows Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-18-2002, 02:33 PM

Posting Permissions

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