Announcement

Collapse
No announcement yet.

Variables

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

  • Variables

    %StartMenuPrograms%, for example. Is this only applicable to XP? I tried using this on a 98 machine and it fails. I hope this is enough info. If it's not cross-platform, what would I use say, in an if statement to make it work on WIN98 and up? Thanks.
    Regards,

    -Ron

    Music | Video | Pictures

  • #2
    Re: Variables

    Search the forum for Special Folder and you'll come across a DLL that will get the location of the StartMenu and several other "Special Folders".

    Comment


    • #3
      Re: Variables

      Thanks Worm. I'm actually using a couple of your dll's, they work great, thanks. But with this specific variable, it doesn't seem to work on a 98 machine and I want it to be cross-platform compatible.

      What I'm trying to do is insert an "uninstall.exe" shortcut in the program group for some software I'm installing (doesn't come with an uninstall feature). I used your code and dll and it works fine on my XP machine, but doesn't work on a WIN98. Here's what I'm using - I believe thanks to you; modified a bit:

      %StartMenuPrograms% = File.CallDLLFunction ( "%SrcDir%\GetFolders.dll", "GetFolder", "2")
      IF (%StartMenuPrograms% != "")
      %StartMenuPrograms% = "%StartMenuPrograms%\Software Eval"
      %FileInfo% = File.GetInformation (Existence, "%StartMenuPrograms%\Software Eval\software.exe")
      IF (%FileInfo%="TRUE")
      Shortcut.Create ("%StartMenuPrograms%", "Uninstall trial version before installing full version", "%ProgramFiles%\Software\Software Eval\uninst.exe")
      ELSE
      %Result% = Dialog.MessageBox ("Failed", "You have not installed the software...", Ok, None)
      END IF
      END IF

      Like I said, works great everytime on XP, not WIN98 :(
      Any help would be appreciated.
      Regards,

      -Ron

      Music | Video | Pictures

      Comment


      • #4
        Re: Variables

        %FileInfo% = File.GetInformation (Existence, "%StartMenuPrograms%\Software Eval\software.exe")
        IF (%FileInfo%="TRUE")

        The EXE most likely wouldn't be found here, it would probably be in the Program Files\Software Eval folder.

        I tried the DLL on a 98 box, and it returns the Startmenu Programs folder correctly when using profiles or a non networked machine.

        Comment


        • #5
          Re: Variables

          Ah ha! Yer right. I guess it's merely a shortcut, even though it "points" to the exe. Thanks, I think I can finger it out from here. Just needed a second set of eyes I guess.
          Regards,

          -Ron

          Music | Video | Pictures

          Comment

          Working...
          X