%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.
Announcement
Collapse
No announcement yet.
Variables
Collapse
X
-
Tags: None
-
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.
Comment
-
Re: Variables
%FileInfo% = File.GetInformation (Existence, "%StartMenuPrograms%\Software Eval\software.exe")
IF (%FileInfo%="TRUE")
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
-
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.
Comment
Comment