Announcement

Collapse
No announcement yet.

AMS4 Uninstall action script for SUF5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AMS4 Uninstall action script for SUF5

    Hi,
    When using AMS4 to trigger the uninstall function in SUF5:

    In AMS3 I used the following actions:-
    File Name: %WinDir%\iun507.exe
    Arguments: %SrcDir%\irunin.ini
    Working Directory: %WinDir%

    I have used the same in AMS4 but it does not work. It does not even give me an error, it just does'nt respond.

    It is a project converted from AMS3.
    Am I missing something?


  • #2
    Re: AMS4 Uninstall action script for SUF5

    What is the path to the folder that your AutoPlay application will be running from? In other words, what does %SrcDir% get set to?

    If there are any spaces in that path, you'll need to put quotes around the command line argument.

    Other than that, it could be a lot of things. What action are you using for this in AMS 4? What settings are you using for that action?

    Maybe try getting it to work in another version 4.0 project starting from scratch...perhaps something in your 3.0 project is causing problems once it's converted to the 4.0 way of doing things.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: AMS4 Uninstall action script for SUF5

      Hi Lorne, thanks for the reply.

      The path would be set by the user. In SUF5 I set a path name but the user can chosse to change it if he already has a path of the same name on his (or her) pc.

      The action is as follows in AMS4:

      File to execute (path and filename):
      %WinDir%\iun507.exe

      Command line arguments:
      %SrcDir%\irunin.ini

      Working Directory:
      %WinDir%

      Mark Mruss helped me out with this a couple of years ago and it has worked in AMS3 since.

      I have attched the XML file for that specific action here.

      I cannot re-create the entire project in AMS4 because it is over 110 screens in size and I need to hand it over early next week. I have commited to AMS4 features on this job.

      Thanks for your assistance.

      Comment


      • #4
        Re: AMS4 Uninstall action script for SUF5

        !Here is the file...

        12427-uninstall.zip

        Comment


        • #5
          Re: AMS4 Uninstall action script for SUF5

          Hi - shouldnt the arg point to the ini file in the uninstall SubDir in SUF Dir?
          Why would it be %SrcDir%? unless you have a copy of the ini file there!
          -
          = Derek
          ["All glory comes from daring to begin" - fortune cookie]

          Comment


          • #6
            Re: AMS4 Uninstall action script for SUF5

            Try putting quotes around the command line argument:

            "%SrcDir%\irunin.ini"

            Requisite copy and pastage:

            <IR_ACTIONS_LIST>
            <Action name="Execute">
            <Type>8</Type>
            <Function>0</Function>
            <DTIndentLevel>0</DTIndentLevel>
            <Enabled>1</Enabled>
            <ErrorHandling>
            <UserNotificationMode>2</UserNotificationMode>
            <CustomErrorMessage/>
            <OnErrorAction>0</OnErrorAction>
            <JumpToLabel/>
            </ErrorHandling>
            <FileName>%WinDir%\iun507.exe</FileName>
            <CommandLine>"%SrcDir%\irunin.ini"</CommandLine>
            <WorkingDir>%WinDir%</WorkingDir>
            <RunMode>0</RunMode>
            <WaitForReturn>0</WaitForReturn>
            </Action>
            </IR_ACTIONS_LIST>

            Other than that, like Derek said, does that path actually point to where the irunin.ini file is? And, uh, is %WinDir% or %SrcDir% being overwritten anywhere else in the project? (That last one's a long shot, but it's possible.)
            --[[ Indigo Rose Software Developer ]]

            Comment


            • #7
              Re: AMS4 Uninstall action script for SUF5

              Like Derek said, unless you are running the AutoPlay application from the same folder as the irunin.ini file is located in %SrcDir%\... path would be wrong.

              To test this, create a File.Open action that opens the ini file when you click a button. At the least, this will confirm whether it is in the right path.

              Comment


              • #8
                Re: AMS4 Uninstall action script for SUF5

                Thanks everybody for the replies,

                Will try this and get back to you.

                Comment


                • #9
                  Re: AMS4 Uninstall action script for SUF5

                  Lorne, Derek and Brett,

                  Thanks for your help. I think it's sorted out now.

                  With AMS3 it was fine to use %SrcDir%. The irunin.ini file is automatically written to the application directory by SUF5. The iun507.exe file is written to the Windows directory. This worked fine for AMS3, but now:

                  What I did is use %AppDir% instead and it worked. You do however (as per your suggestions) have to use quotes ("%AppDir%\irunin.ini")
                  The other actions stay as %WinDir% etc...

                  Thanks gentlemen!

                  Comment

                  Working...
                  X