Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2003
    Location
    ND, USA, Earth
    Posts
    12

    Star Need help converting from SUF6 to SUF8

    In moving my project from SUF6 to SUF8.. I have run into a problem.

    In SUF6 I was able to read an INI file and from that file.. determine where the files will be installed to. Now with SUF8, it seems that.. that functionality does not work the same.. could it be LUA that is the snag?

    In the Startup section, I check and read from the MBS.ini file.. where the section values are what paths should be used. For example, HLPWIN=C:\MBS\HLPWIN1 is read into the variable %HlpWin1% but when I compile and run the installer, I get a message that the installer cannot install to "%HlpWin1%" with an Retry and Cancel button. If I click Retry.. the installer just disappears.

    Setup can not create the following folder:

    %ExeWin1%
    I have added all my variables that I read from the MBS.ini file to the System Variables section. When I run with these set, the installer seems it blows off the information I read from the MBS.ini file for what is set in the System Variable section.

    I have been using SUF for years and would like to continue to use it but if I cannot get over this hurdle.. I will be forced to seek out a different installer software that will.

    If my design is incorrect.. please let me know what I can do to fix the design.

    I have attached the project file to this post for easier viewing of what I am doing.
    Attached Files

  2. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Hello,

    In your code, you define a session variable named %ExeWin% (On Startup script, line 88), yet you use %ExeWin1% as the location for the files in the file view. These variables are not the same, hence the error message.

    Also, you are committing a capital sin when you set folders hard coded like "C:\\MBS\\SYSTEM\\". You don't know if a drive named C: exists, and you certainly should not deploy files outside the proper folders of the file system - things like ProgramFiles folder, ApplicationData folder, etc. are there for a reason. Please consider deploying your application following guidelines published over 10 years ago.

    Ulrich

  3. #3
    Join Date
    Feb 2003
    Location
    ND, USA, Earth
    Posts
    12
    Quote Originally Posted by Ulrich View Post
    Hello,

    In your code, you define a session variable named %ExeWin% (On Startup script, line 88), yet you use %ExeWin1% as the location for the files in the file view. These variables are not the same, hence the error message.

    Also, you are committing a capital sin when you set folders hard coded like "C:\\MBS\\SYSTEM\\". You don't know if a drive named C: exists, and you certainly should not deploy files outside the proper folders of the file system - things like ProgramFiles folder, ApplicationData folder, etc. are there for a reason. Please consider deploying your application following guidelines published over 10 years ago.

    Ulrich
    Ulrich,

    I know you think you know enough.. but we have been around and around and around and around.. about where the files are deployed. Since I am not the owner of MBS.. I do not push this fact. Also, MBS has been around since the early 1990s and so this is the way that the software works. MBS has hardcodes set .. programmatically.. that require the program to be installed as I have detailed. If you cannot understand this.. I can give you the presidents email address and YOU can tell him your thoughts on this.

    I will check that the variables in the design are flowing thru correctly. Thank you for your assistance.

  4. #4
    Join Date
    Feb 2003
    Location
    ND, USA, Earth
    Posts
    12
    Ulrich,

    I guess when you are too close to a project.. you just need a different set of eyes.

    Made the change to the variables and now it is working like it was intended to.

    Thank you.

    Kevin Williams
    MBS Support Staff/Programmer

Posting Permissions

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