Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Posts
    9

    Getting the path of the source files?

    If trying to run a Lua-Script that should install IIS 6.0 and need to get the path of the source file, but have no luck figuring it out.

    this is my code:

    result = File.Run("Sysocmgr.exe", "/i:sysoc.inf /u:".._SourceDrive.."\\IIS6.0\\IIS_Unattended.txt ", , SW_SHOWNORMAL, true)

    In the argument part I'm trying to get the SourceDir and concatenate it with the script file that needs to be run.

    How do I get the Path to the Source dir???

  2. #2
    Join Date
    Aug 2008
    Posts
    30
    Mattis,

    You need have "" for working folder argument. See bolded text below for corrected code. See below for correct code:
    result = File.Run("Sysocmgr.exe", "/i:sysoc.inf /u:".._SourceDrive.."\\IIS6.0\\IIS_Unattended.txt ", "", SW_SHOWNORMAL, true)


    This should work.

    Venky.
    Last edited by venky; 11-03-2008 at 04:33 PM.

  3. #3
    Join Date
    Sep 2006
    Posts
    9
    Hi Venky,

    Thanks for you reply, the problem is not actually the "" for the working folder, there is a default parameter value for that.

    The problem in my example is that I cannot seem to find a variable in MSI Factory that gives me the full path to the source directory of the installation.

    The variable _SourceDrive only gives med the drivename: c:\

    Is there a "global"-variable to get the full path or how do you access the Folders-collection?

    Or can this be done in some way other way by code?

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by Mattis View Post
    The variable _SourceDrive only gives med the drivename: c:\

    Is there a "global"-variable to get the full path or how do you access the Folders-collection?
    I have made a request to IR that there be a _SourceFolder and _SourceFile for other tools (currently; those two exist in SUF). I think if it comes from more than one person; it may get done in an update rather than "we'll think about it".


    (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 2006
    Posts
    9
    Yes I have been using them in SUF and found it very hard to belive when they were not supported in MSI Factory.

    Is there any way to get the same results by writing some more code in Lua, or any other way maybe enumerate the Folder-Collection?

    Thanks,

    Mattias

  6. #6
    Join Date
    Aug 2008
    Posts
    30
    If you are using a bootstrapper you could use _SourceFolder which is a global variable or you could use MSI.GetProductInfo and use the InstallSource property.


    Venky.

Similar Threads

  1. EXAMPLE: Secure your source files
    By Desmond in forum AutoPlay Media Studio 7.5 Examples
    Replies: 12
    Last Post: 04-01-2008, 10:40 AM
  2. Unable to find software?
    By NigelLacey in forum Visual Patch 2.0
    Replies: 4
    Last Post: 10-11-2005, 10:35 AM
  3. Use source sub-tree as destination sub-tree on multiple files
    By roofrack in forum Setup Factory 6.0
    Replies: 1
    Last Post: 08-27-2003, 07:17 AM
  4. HOWTO: Remove Files that were Installed by a Patch or Alternate Source
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-24-2002, 09:49 AM
  5. source path variable
    By Lorne in forum Setup Factory 6.0
    Replies: 3
    Last Post: 02-07-2002, 08:09 AM

Posting Permissions

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