Guest Guest_andrew Posted June 8, 2004 Posted June 8, 2004 hello, i'm trying to write an installation script, and i'm having a little trouble. i have a file called setup.exe, in the root folder of a cd. it is supposed to call up another program called javainstall.exe, which is in a folder called "scripts". here's what i've tried, but it doesn't seem to be working: setup.exe: ~rest of script~ $scriptdir = @ScriptDir $result = StringLeft($scriptdir, 3) $scripts = $result & "scripts\" run ("javainstall.exe", $scripts) it says it can't find the file, but if i put the javainstall.exe in the root folder, it then works, even though it shouldn't be looking there. can anybody help please?
Guest >Stupid< Posted June 8, 2004 Posted June 8, 2004 use this instead $ScriptDir = @ScriptDir run ($result & "\scripts\javainstall.exe" ) makes the script shorter too
Guest Guest Posted June 8, 2004 Posted June 8, 2004 oops that wont work instead of run ($result & "\scripts\javainstall.exe" ) use run ($ScriptDir & "\scripts\javainstall.exe" )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now