kraucer
13th May 2011 17:05 UTC
Windows Vista: functional installer manually but does not work with KiXtart
Friends,
When I run executable down manually (by clicking on the executable) it calls the installer VLC (call_vlc.exe).
************************************
Name "Install VLC"
Outfile "call_vlc.exe"
Function. onInit
Silent SetSilent
FunctionEnd
Section "Start"
SetOverwrite on
MessageBox MB_OK "Starting VLC Install ..."
ExecWait "C: \ vlc-install \ call_vlc.exe"
MessageBox MB_OK "VLC Installed"
SectionEnd
************************************
But when I run via the command: "kix32.exe logon.scr" he simply does not run the installer for VLC (call_vlc.exe).
Source of logon.scr
**************************************************
; x ------------------------------------------------ --- x
; X X VLC Setup
; x ------------------------------------------------ --- x
If Exist ("c: \ ProgramFiles \ VLC \ vlc.exe)
? "VLC is installed"
Else
Run "c: \ vlcsetup \ call_vlc.exe"
? "VLC setup executed"
Endif
*************************************************
Any idea what is happening? I need that much help from you.
Thanks
* sorry, my English is not very good
Afrow UK
13th May 2011 18:10 UTC
This isn't really NSIS related is it? Should you not be asking KiXtart? And anyway, why use KiXtart? You can do everything from NSIS script.
Stu
kraucer
13th May 2011 19:18 UTC
I'm using NSIS installer since November 2008 and installed it with OpenOffice and Firefox on 45,000 computers. The computers are all on a network with Active Directory logon script and so I need to install the KiXtart + NSIS.
Afrow UK
13th May 2011 19:32 UTC
Sorry I still don't see why this has anything to do with NSIS and why you need to use KiXtart. Your KiXtart script is the same as (with improvements; don't assume the VLC directory; get it from the registry):
SetRegView 32
ReadRegStr $R0 HKLM SOFTWARE\VideoLAN\VLC ``
${If} $R0 == ``
${OrIfNot} ${FileExists} $R0
InitPluginsDir
File /oname=$PLUGINSDIR\vlcsetup.exe vlcsetup.exe
ExecWait `"$PLUGINSDIR\vlcsetup.exe" command line options here`
${EndIf}
Stu
kraucer
13th May 2011 20:01 UTC
Soon after a user logs on my network, it automatically runs a logon script. scr and that's where I have to call the installer vlc developed in NSIS.
Afrow UK
13th May 2011 20:36 UTC
Have you tried running another executable file? If that doesn't work then you know it has nothing to do with call_vlc.exe and it's a problem with your script. Otherwise you need to contact the developers of VLC.
Stu
kraucer
13th May 2011 21:34 UTC
The problem occurs with any other executable. The detail is that it works manually but not via logon script. :(
Afrow UK
13th May 2011 22:16 UTC
Have you tried using a batch file instead?
Stu
kraucer
18th May 2011 12:59 UTC
Sorry!
It seems the problem is even with Kix. Anyway, I found it confusing documentation about the command "Requestlevel. Thank you for your attention.