#23581 - 2002-06-20 01:34 PM
Re: problems with running an app (setup.exe don't start from script)
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
Try following code:
code:
IF (@userid = 'wrights') IF NOT Exist("c:\essbase_1\bin\essexcln.xll") USE k: "\\essbase_1\essclnt" IF (@error <> 0) ? "Error KIX-USE: error @error (@serror)" ENDIF SHELL '%comspec% /c start /w "k:\essbase502\502p13\setup.exe" ' IF (@error <> 0) ? "Error KIX-SHELL: error @error (@serror)" ENDIF ENDIF ENDIF
We replace RUn by SHELL command. greetings.
|
|
Top
|
|
|
|
#23582 - 2002-06-20 01:36 PM
Re: problems with running an app (setup.exe don't start from script)
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Use an "If exist()" to make sure you can see the Setup.exe on K:. You also may want to use SHELL instead of RUN if you want the script to wait for the setup.exe to execute.
|
|
Top
|
|
|
|
#23585 - 2002-06-20 01:58 PM
Re: problems with running an app (setup.exe don't start from script)
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
For the differences between read
(almost) everything you wanted to know about RUN and SHELL on FAQ forum
Normally when the setup.exe is there it should start. When you are trying it from a DOS box try
k:\essbase502\502p13\setup.exe
How it is going?
We have also extend our script
code:
IF (@userid = 'wrights') IF NOT Exist("c:\essbase_1\bin\essexcln.xll") USE k: "\\essbase_1\essclnt" IF (@error <> 0) ? "Error KIX-USE: error @error (@serror)" ENDIF IF (Exist("k:\essbase502\502p13\setup.exe") = 1) ? "Informative KIX: start setup." SHELL '%comspec% /c start /w "k:\essbase502\502p13\setup.exe" ' IF (@error <> 0) ? "Error KIX-SHELL: error @error (@serror)" ENDIF ? "completed." ELSE ? "Informative KIX: file 'k:setup' not found." ENDIF ENDIF ENDIF
What is now the result? greetings.
|
|
Top
|
|
|
|
#23590 - 2002-06-20 03:08 PM
Re: problems with running an app (setup.exe don't start from script)
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear 2hotty,
What is your mail address. We will send it to you. greetings.
|
|
Top
|
|
|
|
#23591 - 2002-06-20 03:11 PM
Re: problems with running an app (setup.exe don't start from script)
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear 2hotty,
We doesn't need your mail address anymore. Try to edit your latest reaction. We have copy our script in it which can easily paste to f.e. Notepad.
greetings.
|
|
Top
|
|
|
|
#23593 - 2002-06-20 04:10 PM
Re: problems with running an app (setup.exe don't start from script)
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
What did you see on your screen? Some output must be show on your screen. We have insert all kind of print statements. Some questions: 1. What happens when you enter k:\essbase502\502p13\setup.exe 2. How are you starting your logon script? 3. What is the rest of your script? Greetings. [ 20 June 2002, 16:13: Message edited by: MCA ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2630 anonymous users online.
|
|
|