Archive: Exe runs on 98 but not on NT/2k


Exe runs on 98 but not on NT/2k
I'm probably being very dense, but I have a problem, and I'm just starting with NSIS, so I could use a bit of help. I created an EXE which is just a silent wrapper around a .cab and a setup.exe, and runs the setup.exe using ExecWait(hey, start small!).

I find that it works fine on Win98, but if I try to run the exe on WinNt nothing happens. It just sits there.

Am I doing something wrong, or do Exe's to run on NT and 9x have to be compiled on NT?

Thanks,

Roger Pearse
----nsi follows-----
;GENERATOR: NSISXpress - http://www.baliproject.com
;VERSION: 1.00
;INFO: NSISXpress - Copyright (C)2001, baliproject.com
;INFO: indy@baliproject.com
;INFO: Nullsoft SuperPIMP Install System - Copyright (C)1999-2001 Nullsoft, Inc.
;WARNING ! Please do not modify the header

;-)Application_Name QuickLatin
;-)Application_Version 1.2.0.0
;-)Application_Main_EXE C:\Roger_Big\ql12\package\setup.exe
;-)Add_Publisher
;-)Add_Contact
;-)Add_Publisher_URL
;-)Add_Support_URL
;-)Add_Support_Phone
;-)Add_Product_URL
;-)Add_Comments

Name QuickLatin
Caption QuickLatin
; Default variables
!define VER_MAJOR 1
!define VER_MINOR 2
!define APP_NAME QuickLatin
; ---
BGGradient off
InstallColors /windows
AutoCloseWindow false
ShowInstDetails hide
InstProgressFlags smooth colored
DirShow hide
DirText "folder to use?"
InstallDir $TEMP\ql_install
SilentInstall silent
InstType Typical
InstType Complete
InstType Minimal
OutFile C:\Roger_big\ql12\nsis\ql12.exe
SubCaption 0 ""
SubCaption 1 ""
SubCaption 2 ""
SubCaption 3 ""
SubCaption 4 ""
UninstallText "my roger uninstaller"
;-)Uninstall_Create_Shortcut off
;-)Uninstall_Auto_Section off
UninstallSubCaption 0 ""
UninstallSubCaption 1 ""
UninstallSubCaption 2 ""

Section "New Section"
SetOutPath "$INSTDIR"
File C:\Roger_Big\ql12\package\setup.exe
File C:\Roger_Big\ql12\package\Setup.lst
File C:\Roger_Big\ql12\package\ql.CAB
ExecWait C:\Roger_Big\ql12\package\setup.exe
RMDir /r $TEMP\ql_install
SectionEnd

; eof - QuickLatin v1.2.0.0 DT: 2002.05.17 16:15


Why are you executing C:\Roger_Big\ql12\package\setup.exe if the file is extracted to $TEMP\ql_install\setup.exe?
On the Win9x machine you had the file in C:\Roger_Big\ql12\package\setup.exe but on the NT you didn't... That should be the problem.


Thank you for this - I'll give it a go. I don't yet understand how NSIS does things, but this does make a lot of sense. (unfortunately). My bid for wally of the week award...

Thanks again,

Roger Pearse