Jump to content

variables within the run command? (help please!)


Recommended Posts

Guest Guest_andrew

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?

Link to post
Share on other sites
Guest Guest

oops that wont work instead of

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

use

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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...