Sign in to follow this  
Followers 0
Guest Guest_andrew

variables within the run command? (help please!)

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



use this instead

$ScriptDir = @ScriptDir

run ($result & "\scripts\javainstall.exe" )

makes the script shorter too :D

Share this post


Link to post
Share on other sites

oops that wont work instead of

run ($result & "\scripts\javainstall.exe" )

use

run ($ScriptDir & "\scripts\javainstall.exe" )

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0