#195083 - 2009-07-28 05:44 PM
Install Application
|
wreded
Fresh Scripter
Registered: 2003-11-06
Posts: 28
Loc: Montana, USA
|
i don't get a chance to use Kix as much as i'd like and i've never tried to install an application, until now. We have a new application that takes two installs, one for connectivity and one for the application itself. Additionally, each user must have a directory in their "\Application Data" (for WinXP) and one in "\AppData" for (WinVista) with one file in it that contains their login credentials (different for each computer user). i've got all my variables set and tried to install the connectivity portion using the SHELL command and it doesn't appear to start up at all on Vista. On XP i get denied 'cause i'm now running with elevated privileges. The line looks like:
Function loadOne
shell "J:\CER\! System Updates\winvue\WIMSV6.03Jul09\CygwinForVUWin603Setup.exe"
gets $x
Endfunction
Once i get this ironed out (and using elevated privileges!) i can continue on to the next part: getting user input to put their credentials in the file. i've never been good at parsing files and i need to get user input to replace a single string "abc@" with proper credentials. Thanks for any assistance. Dave
|
|
Top
|
|
|
|
#195088 - 2009-07-28 11:46 PM
Re: Install Application
[Re: wreded]
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
You have used SHELL..
Have you tried: RUN?
Couple of other things you can try: Invoke an environment space..
SHELL "%COMSPEC% /E:1024 /C J:\CER\! System Updates\winvue\WIMSV6.03Jul09\CygwinForVUWin603Setup.exe"
Or..
RUN "%COMSPEC% /E:1024 /C J:\CER\! System Updates\winvue\WIMSV6.03Jul09\CygwinForVUWin603Setup.exe"
As far as sending "abc@", you will need to either double the @ as it is used by kiz or use the NOVARSINSTRINGS..
HTH,
Kent
|
|
Top
|
|
|
|
#195091 - 2009-07-29 05:09 AM
Re: Install Application
[Re: wreded]
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
What you are going to want to do is to place debug statements on each of the steps and evaluate what the response is. For example:
DEBUG ON
MD C:\Some_Directory
?@error + ' RESULT'
?@serror } ' SCRIPT RESULT'
You can find out more about DEBUG, @SERROR, and @ERROR and more from the KiXtart documentation.
HTH,
Kent
|
|
Top
|
|
|
|
#195295 - 2009-08-06 12:22 AM
Re: Install Application
[Re: Allen]
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
|
Better than taking it in the, er, head, I suppose...
I never disable UAC, actually, and have learned to work around it fairly well. Still bugs me (being polite here), though, that a Domain Admin isn't equivelent to the local Administrator. Just today, when testing the new PinIt UDF, I had to run as Administrator, since my domain admin account would not work.
I also never use RunNas with embedded passwords.. so can't be much help there. What I do use, and has been VERY effective, is the task scheduler. I can be a normal user, create a task event that runs with any credentials, and can be configured to run without a trigger and then executed manually. This has been discussed in detail many times in the past few months, so do a quick search for "tclib" and "scheduled task" for more ideas.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|