Old 23rd May 2002, 17:04   #1
roger_pearse
Junior Member
 
Join Date: May 2002
Location: England
Posts: 2
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
roger_pearse is offline   Reply With Quote
Old 23rd May 2002, 17:09   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd May 2002, 18:07   #3
roger_pearse
Junior Member
 
Join Date: May 2002
Location: England
Posts: 2
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
roger_pearse is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump