Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2013
    Location
    Egypt
    Posts
    6

    how to call my files such as xml,ini from setup factroy?

    hi gays, how are you ?
    i'm sorry i speak a little english, but i trying to describe my issue
    actually after i created my project, i built a setup file for it with the setup factory.
    and everything goes well except the files has .xml and .ini extensions. !!
    i think the probelm in the shortcut file, becuase when i goto %programsfiles% and get the folder contains my files, the exe file work well.
    so my question is : how can i link those files with the sortcut, that found on the Desktop after installation process ?
    i apologize for stretching.

    i need your help

  2. #2
    Join Date
    Jul 2008
    Location
    Switzerland
    Posts
    260
    i dont know if im understand you correctly.

    you would start your .exe file with some Parameter inside the shortcut?

    use ShellCreateShortcut to create your own Icons with some params.

    Code:
    Shell.CreateShortcut(_DesktopFolderCommon, "MyIcon", "C:\\Progress\\OpenEdge\\bin\\prowin32.exe", "C:\\ProgramData\\pro.ini", "C:\\Progress\\OpenEdge\\bin", "C:\\Progress\\Icons\\ico.ico", 0, SW_SHOWNORMAL, nil, "My Icons with Parameter");

    note: All User Icons Need admin rights during install.

    regards

  3. #3
    Join Date
    Feb 2013
    Location
    Egypt
    Posts
    6
    Quote Originally Posted by Worti View Post
    i dont know if im understand you correctly.

    you would start your .exe file with some Parameter inside the shortcut?

    use ShellCreateShortcut to create your own Icons with some params.

    Code:
    Shell.CreateShortcut(_DesktopFolderCommon, "MyIcon", "C:\\Progress\\OpenEdge\\bin\\prowin32.exe", "C:\\ProgramData\\pro.ini", "C:\\Progress\\OpenEdge\\bin", "C:\\Progress\\Icons\\ico.ico", 0, SW_SHOWNORMAL, nil, "My Icons with Parameter");

    note: All User Icons Need admin rights during install.

    regards
    thank you for reply sir, but could you explain your code a bit more please?
    where can i use it (AMS or SF) ?

  4. #4
    Join Date
    Jul 2008
    Location
    Switzerland
    Posts
    260
    you can use it on both AMS and SUF

    check the helpfile about Shell.CreateShortcut

    my code will create an Icon on AllUser Desktop, Target will be C:\Progress\OpenEdge\prowin32.exe followed the CmdLine C:\ProgramData\pro.ini. As Target the Path to the application C:\Progress\OpenEdge\bin will be used.

    Properties from the Icon
    icon.jpg

  5. #5
    Join Date
    Feb 2013
    Location
    Egypt
    Posts
    6
    thank you i'm trying now, and i'll confirm after test

  6. #6
    Join Date
    Feb 2013
    Location
    Egypt
    Posts
    6
    yes sir, it's helped me to create a desktop shortcut, but still doesn't work with my files in the DOCs folder,
    my app name is GPA application.
    this is my code

    Shell.CreateShortcut(_DesktopFolderCommon, "GPA application", SessionVar.Expand("%AppFolder%\\GPAapplication.exe "), "C:\\ProgramData\\pro.ini", "C:\\Progress\\OpenEdge\\bin", SessionVar.Expand("%AppFolder%\\GPA icon.ico"), 0, SW_SHOWNORMAL, nil, "My Icons with Parameter");

    what's the wrong ??

  7. #7
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    3,024
    You are posting in the AutoPlay Media Studio forums, yet AMS does not support Session Variables. If this is a question regarding Setup Factory, please use the proper SUF forum.

    Also, you should never use hard coded paths in your code.

    If you are still having problems, please attach the exported project (*.apz).

    Ulrich

  8. #8
    Join Date
    Feb 2013
    Location
    Egypt
    Posts
    6
    thank you for your effort , my problem was fixed but there's one more thing with
    the Web/Email Executable, i want to know how can i use the _CommandLineArgs to make my project work normally as the hard drive folder, i mean the project can send and retrieve information normally ?

Posting Permissions

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