Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3

Thread: Folder Rename

  1. #1
    Join Date
    Jul 2008
    Location
    Switzerland
    Posts
    224

    Folder Rename

    i know im repeat me..

    but maybee this time someone adds a message from IR, yes we read that.. no we have nothing to do with that..

    If you rename the Output Folder from AutoPlay to Data they doesent change every AutoPlay in the Script.

    One from Mai
    the actuall one

    if i have to open a support case, let me know.

    thx

  2. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    It is my understanding that you already found out that AutoPlay Media Studio is unable to replace all occurrences of "AutoPlay" in your Lua scripts automatically, when you set to rename the data folder. Renaming the data folder name works correctly if you use only Quick Actions in the project, however if you use Lua scripting, then you have to take additional steps to assure that the resources can be found and the path names are correct. AutoPlay Media Studio cannot do this for you, and this is not a bug.

    One simple way you can determine the name of the resources folder is reading the folder name in the On Startup script. Once you have the folder name, use a variable in your scripts to assemble the path names. This would work during previews and after publishing the project.

    Code:
    -- "On Startup"
    -- There is normally only one folder where your autorun.exe resides.
    -- If you have additional folders, change the script accordingly.
    local tFolders = Folder.Find(Folder.GetCurrent(), "*", false, nil);
    if (tFolders ~= nil) then
      DataFolder = tFolders[1];
    else
      DataFolder = "AutoPlay";
    end
    
    -- somewhere else in your project
    File.Run(DataFolder.."\\Setup\\setup.exe", "-s "..DataFolder.."\\Setup\\setup.iss", "", SW_SHOWNORMAL, true);
    Ulrich

  3. #3
    Join Date
    Jul 2008
    Location
    Switzerland
    Posts
    224
    Thank you Ulrich

    i will take a lock at our suggestion.

    And sorry for that "panic" its time for Holiday

    Regards
    Rolf

Posting Permissions

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