rhamersley
(Fresh Scripter)
2006-03-21 09:24 PM
Help installing a MSI file

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


Radimus
(KiX Supporter)
2006-03-21 09:25 PM
Re: Help installing a MSI file

Run 'msiexec /i \\Fldavrep01\calltracking\PSCallRecordingSetup\PSCallTracking_Setup.msi /qb-'


missed end quote


rhamersley
(Fresh Scripter)
2006-03-21 09:28 PM
Re: Help installing a MSI file

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


LonkeroAdministrator
(KiX Master Guru)
2006-03-21 09:36 PM
Re: Help installing a MSI file

lets start with the fact that your end quote is misplaced.
see the correct line from radimus.


rhamersley
(Fresh Scripter)
2006-03-21 09:46 PM
Re: Help installing a MSI file

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


LonkeroAdministrator
(KiX Master Guru)
2006-03-21 10:09 PM
Re: Help installing a MSI file

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.


rhamersley
(Fresh Scripter)
2006-03-22 12:31 AM
Re: Help installing a MSI file

Could you help with syntax with for the Shell command??

Les
(KiX Master)
2006-03-22 01:35 AM
Re: Help installing a MSI file

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?


Björn
(Korg Regular)
2006-03-22 08:39 AM
Re: Help installing a MSI file

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