Page 1 of 1 1
Topic Options
#159559 - 2006-03-21 09:24 PM Help installing a MSI file
rhamersley Offline
Fresh Scripter

Registered: 2005-11-09
Posts: 15
Loc: Fort Lauderdale, FL
Im trying to install a "MSI" file in my kixtart script. For some reason is doesnt want to run. Does anyone have any ideas why the script may not work. I would like to have another pair of eyes to view my script. Any help is much appreciated. Thanks

If InGroup ("ALLKIXCALLTRACKING")
If NOT ReadValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2')
Run 'msiexec /i \\Fldavrep01\calltracking\PSCallRecordingSetup\PSCallTracking_Setup.msi /qb-
WriteValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2','1','REG_SZ')
EndIf

Top
#159560 - 2006-03-21 09:25 PM Re: Help installing a MSI file
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
Run 'msiexec /i \\Fldavrep01\calltracking\PSCallRecordingSetup\PSCallTracking_Setup.msi /qb-'


missed end quote
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#159561 - 2006-03-21 09:28 PM Re: Help installing a MSI file
rhamersley Offline
Fresh Scripter

Registered: 2005-11-09
Posts: 15
Loc: Fort Lauderdale, FL
I just added the quote re-ran the MSI file and the script did not kick off the MSI installation.

Updated Script:
If InGroup ("ALLKIXCALLTRACKING")
If NOT ReadValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2')
Run 'msiexec /i \\Fldavrep01\calltracking\PSCallRecordingSetup\PSCallTracking_Setup.msi' /qb-
WriteValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2','1','REG_SZ')
EndIf

Top
#159562 - 2006-03-21 09:36 PM Re: Help installing a MSI file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lets start with the fact that your end quote is misplaced.
see the correct line from radimus.
_________________________
!

download KiXnet

Top
#159563 - 2006-03-21 09:46 PM Re: Help installing a MSI file
rhamersley Offline
Fresh Scripter

Registered: 2005-11-09
Posts: 15
Loc: Fort Lauderdale, FL
I changed the quote and still doesnt want to run. Has anyone installed a MSI file from Kixtart script????

If InGroup ("ALLKIXCALLTRACKING")
If NOT ReadValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2')
Run 'msiexec /i \\Fldavrep01\calltracking\PSCallRecordingSetup\PSCallTracking_Setup.msi /qb-'
WriteValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2','1','REG_SZ')
EndIf

Top
#159564 - 2006-03-21 10:09 PM Re: Help installing a MSI file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sure we have.
done it a lot without any problems.
you might want to use shell instead of run...

then, the msi can be of special kind, so you might need to add some extra code, but it surely shall run fine, at least with shell.
_________________________
!

download KiXnet

Top
#159565 - 2006-03-22 12:31 AM Re: Help installing a MSI file
rhamersley Offline
Fresh Scripter

Registered: 2005-11-09
Posts: 15
Loc: Fort Lauderdale, FL
Could you help with syntax with for the Shell command??
Top
#159566 - 2006-03-22 01:35 AM Re: Help installing a MSI file
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
First off, there should be two ENDIFs there.

Are you sure you are satisfying both IFs and that it is the RUN line that is letting you down? Have you tried putting in a marker to see that you get there?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#159567 - 2006-03-22 08:39 AM Re: Help installing a MSI file
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Quote:

I changed the quote and still doesnt want to run. Has anyone installed a MSI file from Kixtart script????

If InGroup ("ALLKIXCALLTRACKING")
If NOT ReadValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2')
Run 'msiexec /i \\Fldavrep01\calltracking\PSCallRecordingSetup\PSCallTracking_Setup.msi /qb-'
WriteValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2','1','REG_SZ')
EndIf




Indeed we do install msi-packets with the help of kixtart.
Code:

If InGroup ("ALLKIXCALLTRACKING")
"in group allkixcalltracking" ?
If NOT ReadValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2')
"regvalue does not exist" ?
SHELL '%windir%\system32\msiexec.exe /i \\Fldavrep01\calltracking\PSCallRecordingSetup\PSCallTracking_Setup.msi /qb-'
WriteValue('HKEY_CURRENT_USER\SOFTWARE\RunOnce','cal2','1','REG_SZ')
EndIf
EndIf


(note that the location of msiexec might differ on 9x-machines (I acctually have no idea))
Any comments about errornous code? =)
(spelling noted


Edited by ewook (2006-03-22 11:17 AM)
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.03 seconds in which 0.011 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org