- NSIS Discussion
- Get me off this pit !!!!
Archive: Get me off this pit !!!!
jzdexta
1st February 2006 17:23 UTC
Get me off this pit !!!!
When I compile my .nsi which has been attached to this application the following log file is generated:
MakeNSIS v2.14 - Copyright 1999-2006 Nullsoft, Inc.
Portions Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler (zlib).
Portions Copyright (C) 1996-2002 Julian R Seward (bzip2).
Portions Copyright (C) 1999-2003 Igor Pavlov (lzma).
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, Robert Rainwater, Yaroslav Faybishenko, Jeff Doozan, Amir Szekely, Ximon Eighteen, et al.
Processing config:
Processing plugin dlls: "C:\PROGRAM FILES\NSIS\Plugins\*.dll"
- AdvSplash::show
- Banner::destroy
- Banner::getWindow
- Banner::show
- BgImage::AddImage
- BgImage::AddText
- BgImage::Clear
- BgImage::Destroy
- BgImage::Redraw
- BgImage::SetBg
- BgImage::SetReturn
- BgImage::Sound
- Dialer::AttemptConnect
- Dialer::AutodialHangup
- Dialer::AutodialOnline
- Dialer::AutodialUnattended
- Dialer::GetConnectedState
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- NSISdl::download
- NSISdl::download_quiet
- Splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- VPatch::vpatchfile
- nsExec::Exec
- nsExec::ExecToLog
- nsExec::ExecToStack
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "D:\Dexta\Internet Code\crak\balance sheet"
Processing script file: "D:\Dexta\Internet Code\crak\balance sheet\Net Sample.nsi"
!define: "MUI_PRODUCT"="ADO Total Show Beta Ver. 1.0.0"
!define: "MUI_FILE"="ADOTotalShow"
!define: "MUI_VERSION"=""
!define: "MUI_BRANDINGTEXT"="ADO Total Show Beta Ver. 1.0.0"
!include: "C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.74 - © 2002-2006 Joost Verburg (C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh:11)
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh"
OutFile: "ADOTotalsShow.exe"
ShowInstDetails: nevershow
ShowUninstDetails: nevershow
!define: "MUI_ICON"="modern-install-blue.ico"
!define: "MUI_UNICON"="modern-uninstall-colorful.ico"
!define: "MUI_SPECIALBITMAP"="nsis.bmp"
InstallDir: "$PROGRAMFILES\ADO Total Show Beta Ver. 1.0.0"
!define: "MUI_WELCOMEPAGE"=""
!define: "MUI_DIRECTORYPAGE"=""
!define: "MUI_ABORTWARNING"=""
!define: "MUI_UNINSTALLER"=""
!define: "MUI_UNCONFIRMPAGE"=""
!define: "MUI_FINISHPAGE"=""
Usage: Section [/0] [-][un.][section_name] [section index output]
Error in script "D:\Dexta\Internet Code\crak\balance sheet\Net Sample.nsi" on line 74 -- aborting creation process
Can someone please help me :mad: :cry: :eek:
Afrow UK
1st February 2006 17:50 UTC
Section "install"
not
Section "install" Installation info
-Stu
jzdexta
1st February 2006 18:02 UTC
When I re-compile the file after making aforementioned modifications this my new error:
"MakeNSIS v2.14 - Copyright 1999-2006 Nullsoft, Inc.
Portions Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler (zlib).
Portions Copyright (C) 1996-2002 Julian R Seward (bzip2).
Portions Copyright (C) 1999-2003 Igor Pavlov (lzma).
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, Robert Rainwater, Yaroslav Faybishenko, Jeff Doozan, Amir Szekely, Ximon Eighteen, et al.
Processing config:
Processing plugin dlls: "C:\PROGRAM FILES\NSIS\Plugins\*.dll"
- AdvSplash::show
- Banner::destroy
- Banner::getWindow
- Banner::show
- BgImage::AddImage
- BgImage::AddText
- BgImage::Clear
- BgImage::Destroy
- BgImage::Redraw
- BgImage::SetBg
- BgImage::SetReturn
- BgImage::Sound
- Dialer::AttemptConnect
- Dialer::AutodialHangup
- Dialer::AutodialOnline
- Dialer::AutodialUnattended
- Dialer::GetConnectedState
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- NSISdl::download
- NSISdl::download_quiet
- Splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- VPatch::vpatchfile
- nsExec::Exec
- nsExec::ExecToLog
- nsExec::ExecToStack
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "D:\Dexta\Internet Code\crak\balance sheet"
Processing script file: "D:\Dexta\Internet Code\crak\balance sheet\Net Sample.nsi"
!define: "MUI_PRODUCT"="ADO Total Show Beta Ver. 1.0.0"
!define: "MUI_FILE"="ADOTotalShow"
!define: "MUI_VERSION"=""
!define: "MUI_BRANDINGTEXT"="ADO Total Show Beta Ver. 1.0.0"
!include: "C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.74 - © 2002-2006 Joost Verburg (C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh:11)
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh"
OutFile: "ADOTotalsShow.exe"
ShowInstDetails: nevershow
ShowUninstDetails: nevershow
!define: "MUI_ICON"="modern-install-blue.ico"
!define: "MUI_UNICON"="modern-uninstall-colorful.ico"
!define: "MUI_SPECIALBITMAP"="nsis.bmp"
InstallDir: "$PROGRAMFILES\ADO Total Show Beta Ver. 1.0.0"
!define: "MUI_WELCOMEPAGE"=""
!define: "MUI_DIRECTORYPAGE"=""
!define: "MUI_ABORTWARNING"=""
!define: "MUI_UNINSTALLER"=""
!define: "MUI_UNCONFIRMPAGE"=""
!define: "MUI_FINISHPAGE"=""
Section: "install"
SetOutPath: "$INSTDIR"
!insertmacro: InstallLib
!insertmacro: macro named "InstallLib" not found!
Error in script "D:\Dexta\Internet Code\crak\balance sheet\Net Sample.nsi" on line 79 -- aborting creation process
"
Im now hopefull that it will work thank you and hope you cn figure out what is wrong with this script
Thank you
Afrow UK
1st February 2006 18:56 UTC
Did you !include Library.nsh?
-Stu
jzdexta
2nd February 2006 10:21 UTC
This is the output i get if i run the script with changes to include statement.
:eek:
MakeNSIS v2.14 - Copyright 1999-2006 Nullsoft, Inc.
Portions Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler (zlib).
Portions Copyright (C) 1996-2002 Julian R Seward (bzip2).
Portions Copyright (C) 1999-2003 Igor Pavlov (lzma).
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, Robert Rainwater, Yaroslav Faybishenko, Jeff Doozan, Amir Szekely, Ximon Eighteen, et al.
Processing config:
Processing plugin dlls: "C:\PROGRAM FILES\NSIS\Plugins\*.dll"
- AdvSplash::show
- Banner::destroy
- Banner::getWindow
- Banner::show
- BgImage::AddImage
- BgImage::AddText
- BgImage::Clear
- BgImage::Destroy
- BgImage::Redraw
- BgImage::SetBg
- BgImage::SetReturn
- BgImage::Sound
- Dialer::AttemptConnect
- Dialer::AutodialHangup
- Dialer::AutodialOnline
- Dialer::AutodialUnattended
- Dialer::GetConnectedState
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- NSISdl::download
- NSISdl::download_quiet
- Splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- VPatch::vpatchfile
- nsExec::Exec
- nsExec::ExecToLog
- nsExec::ExecToStack
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "D:\Dexta\Internet Code\crak\balance sheet"
Processing script file: "D:\Dexta\Internet Code\crak\balance sheet\Net Sample.nsi"
!define: "MUI_PRODUCT"="ADO Total Show Beta Ver. 1.0.0"
!define: "MUI_FILE"="ADOTotalShow"
!define: "MUI_VERSION"=""
!define: "MUI_BRANDINGTEXT"="ADO Total Show Beta Ver. 1.0.0"
!include: "C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.74 - © 2002-2006 Joost Verburg (C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh:11)
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh"
!include: "C:\PROGRAM FILES\NSIS\Include\Library.nsh"
!define: "LIB_INCLUDED"=""
!define: "SHCNE_ASSOCCHANGED"="0x08000000"
!define: "SHCNF_IDLIST"="0x0000"
!include: closed: "C:\PROGRAM FILES\NSIS\Include\Library.nsh"
OutFile: "ADOTotalsShow.exe"
ShowInstDetails: nevershow
ShowUninstDetails: nevershow
!define: "MUI_ICON"="modern-install-blue.ico"
!define: "MUI_UNICON"="modern-uninstall-colorful.ico"
!define: "MUI_SPECIALBITMAP"="nsis.bmp"
InstallDir: "$PROGRAMFILES\ADO Total Show Beta Ver. 1.0.0"
!define: "MUI_WELCOMEPAGE"=""
!define: "MUI_DIRECTORYPAGE"=""
!define: "MUI_ABORTWARNING"=""
!define: "MUI_UNINSTALLER"=""
!define: "MUI_UNCONFIRMPAGE"=""
!define: "MUI_FINISHPAGE"=""
Section: "install"
SetOutPath: "$INSTDIR"
!insertmacro: InstallLib
warning: unknown variable/constant "ALREADY_INSTALLED" detected, ignoring (macro:InstallLib:49)
!insertmacro: macro "__InstallLib_Helper_GetVersion" requires 2 parameter(s), passed 3!
Error in macro InstallLib on macroline 86
Error in script "D:\Dexta\Internet Code\crak\balance sheet\Net Sample.nsi" on line 79 -- aborting creation process
Attached is the script
Mr Inches
2nd February 2006 12:18 UTC
OK - the problem on line 79 of your script is that you are using the variable ALREADY_INSTALLED for the "shared" parameter of the InstallLib, but you haven't declared it anywhere nor assigned it a value (I think InstallLib expects a value of 'NOTSHARED' or any other value. If any another value is specifed, it will query the share/installed count of the library held in the registry - if this is wrong, someone else correct me here, I haven't used InstalledLib, I am doing this from inspection of the NSIS include file.)
There is a further error on line 86 of the macro, this is because the backslash in the first library filename is outside the double quotes. (\"msvbvm60.dll" should be "\msvbvm60.dll"). This is on line 79 of your script too.
Hope that helps.
jzdexta
2nd February 2006 13:22 UTC
Thanx for the help.
Have succesfully compiled the application though the're 2 errors relating to MUI_Temp1 and MUI_Temp2 whats this?
While installing the compiled application the directory page didnt appear so im wondering what did i do wrong and what should i do to display the directory page (Please find the attached nsi file)
Was also trying to add an icon to the installer instead of the default winamp like icon and it failed how do i create it?
The script is differnt from the other posted scripts
Mr Inches
2nd February 2006 14:29 UTC
I have been through the attached script and fixed up (most) of the problems. Amendments are in the attached script. (I commented out the erroneous lines and tried to add an explanation to each one.). You should read the Modern UI doco if you want to configure the interface further.
The MUI_TEMP1 and MUI_TEMP2 warnings result from you not managing to display any of the MUI pages; now the script will do that, those should be toast.
I fixed up a number of other things so the script would compile on my computer, which I am glad to say it does. I even ran it and it seems to park stuff in the designated places. Didn't check the uninstall though, but it looks reasonable.
One thing to note, ensure that your code to set ALREADY_INSTALLED doesn't just set it to a non-zero value; as per my previous post, I think InstallLib is looking for a string containing "NOTSHARED" or another string value e.g. "SHARED", indicating it should update the registry with the additional "install" of the libraries.
You may have also have to register some or all of the libraries once you have copied them onto the target computer e.g regsvr32 <blah.ocx> or similar. The uninstall may have to unregister and offer to delete them (if it thinks it is the last application using them).
Mr Inches
2nd February 2006 14:37 UTC
Caveat to my last post - I left the InstallLib lines commented out - they don't need to be - I just don't have the libraries on my computer and they stopped the compile from working. Oops.
jzdexta
2nd February 2006 15:16 UTC
The below output is what is generated after working as advised by Mr Inches.
Have uncommented the areas relevant to the application im compiling.
MakeNSIS v2.14 - Copyright 1999-2006 Nullsoft, Inc.
Portions Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler (zlib).
Portions Copyright (C) 1996-2002 Julian R Seward (bzip2).
Portions Copyright (C) 1999-2003 Igor Pavlov (lzma).
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, Robert Rainwater, Yaroslav Faybishenko, Jeff Doozan, Amir Szekely, Ximon Eighteen, et al.
Processing config:
Processing plugin dlls: "C:\PROGRAM FILES\NSIS\Plugins\*.dll"
- AdvSplash::show
- Banner::destroy
- Banner::getWindow
- Banner::show
- BgImage::AddImage
- BgImage::AddText
- BgImage::Clear
- BgImage::Destroy
- BgImage::Redraw
- BgImage::SetBg
- BgImage::SetReturn
- BgImage::Sound
- Dialer::AttemptConnect
- Dialer::AutodialHangup
- Dialer::AutodialOnline
- Dialer::AutodialUnattended
- Dialer::GetConnectedState
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- NSISdl::download
- NSISdl::download_quiet
- Splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- VPatch::vpatchfile
- nsExec::Exec
- nsExec::ExecToLog
- nsExec::ExecToStack
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "D:\Dexta\Internet Code\crak\balance sheet"
Processing script file: "D:\Dexta\Internet Code\crak\balance sheet\net sample-mi.nsi"
!define: "MUI_PROUCT"="ADO Total Show Beta Ver. 1.0.0"
!define: "PRODUCT"="ADOTotalsShow"
!define: "MUI_VERSION"=""
!define: "MUI_BRANDINGTEXT"="ADO Total Show Beta Ver. 1.0.0"
CRCCheck: On
!include: "C:\PROGRAM FILES\NSIS\Include\Library.nsh"
!define: "LIB_INCLUDED"=""
!define: "SHCNE_ASSOCCHANGED"="0x08000000"
!define: "SHCNF_IDLIST"="0x0000"
!include: closed: "C:\PROGRAM FILES\NSIS\Include\Library.nsh"
!include: "C:\PROGRAM FILES\NSIS\Include\MUI.nsh"
!include: "C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.74 - © 2002-2006 Joost Verburg (C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh:11)
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\PROGRAM FILES\NSIS\Contrib\Modern UI\System.nsh"
!include: closed: "C:\PROGRAM FILES\NSIS\Include\MUI.nsh"
OutFile: "ATS Setup.exe"
ShowInstDetails: show
ShowUninstDetails: nevershow
SetCompressor: bzip2
!define: "MUI_ICON"="C:\PROGRAM FILES\NSIS\Contrib\Graphics\icons\modern-install-blue.ico"
!define: "MUI_UNICON"="C:\PROGRAM FILES\NSIS\Contrib\Graphics\icons\modern-uninstall-blue.ico"
!define: "MUI_SPECIALBITMAP"="nsis.ico"
Var: "ALREADY_INSTALLED"
InstallDir: "$PROGRAMFILES\ADOTotalsShow"
!define: "MUI_PAGE_ABORTWARNING"=""
!insertmacro: MUI_PAGE_WELCOME
!insertmacro: end of MUI_PAGE_WELCOME
!insertmacro: MUI_PAGE_DIRECTORY
!insertmacro: end of MUI_PAGE_DIRECTORY
!insertmacro: MUI_PAGE_INSTFILES
!insertmacro: end of MUI_PAGE_INSTFILES
!insertmacro: MUI_PAGE_FINISH
!insertmacro: end of MUI_PAGE_FINISH
!insertmacro: MUI_UNPAGE_WELCOME
!insertmacro: end of MUI_UNPAGE_WELCOME
!insertmacro: MUI_UNPAGE_CONFIRM
!insertmacro: end of MUI_UNPAGE_CONFIRM
!insertmacro: MUI_UNPAGE_INSTFILES
!insertmacro: end of MUI_UNPAGE_INSTFILES
!insertmacro: MUI_UNPAGE_FINISH
!insertmacro: end of MUI_UNPAGE_FINISH
!insertmacro: MUI_LANGUAGE
warning: !warning: The MUI_PRODUCT and MUI_VERSION defines have been removed. Use a normal Name command now. (macro:MUI_INSERT:3)
!insertmacro: end of MUI_LANGUAGE
Section: "-Install VB6 runtimes"
SetOutPath: "$INSTDIR"
IfFileExists: "$INSTDIR\ADOTotalsShow.exe" ? 0 : new_installation
StrCpy $ALREADY_INSTALLED "1" () ()
File: "ADOTotalsShow.exe" [compress] 22671/86016 bytes
File: "Parts.mdb" [compress] 11667/143360 bytes
!insertmacro: InstallLib
!insertmacro: end of InstallLib
!insertmacro: InstallLib
!insertmacro: end of InstallLib
!insertmacro: InstallLib
!insertmacro: end of InstallLib
!insertmacro: InstallLib
!insertmacro: end of InstallLib
!insertmacro: InstallLib
!insertmacro: end of InstallLib
!insertmacro: InstallLib
!insertmacro: end of InstallLib
!insertmacro: InstallLib
!insertmacro: end of InstallLib
!insertmacro: InstallLib
!insertmacro: end of InstallLib
CreateShortCut: "$DESKTOP\ADOTotalsShow.lnk"->"$INSTDIR\ADOTotalsShow.exe" nsis.ico icon:,0, showmode=0x0, hotkey=0x0, comment=
CreateDirectory: "$SMPROGRAMS\ADOTotalsShow"
CreateShortCut: "$SMPROGRAMS\ADOTotalsShow\Uninstall.lnk"->"$INSTDIR\Uninstall.exe" C:\PROGRAM FILES\NSIS\Contrib\Graphics\icons\modern-uninstall-blue.ico icon:$INSTDIR\Uninstall.exe,0, showmode=0x0, hotkey=0x0, comment=
CreateShortCut: "$SMPROGRAMS\ADOTotalsShow\ADOTotalsShow.lnk"->"$INSTDIR\ADOTotalsShow.exe" nsis.ico icon:$INSTDIR\ADOTotalsShow.exe,0, showmode=0x0, hotkey=0x0, comment=
WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\ADOTotalsShow\DisplayName=ADOTotalsShow (remove only)
WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\ADOTotalsShow\UninstallString=$INSTDIR\Uninstall.exe
WriteUninstaller: "$INSTDIR\Uninstall.exe"
SectionEnd
Section: "-un.Uninstall VB6 runtimes"
!insertmacro: UnInstallLib
!insertmacro: end of UnInstallLib
!insertmacro: UnInstallLib
!insertmacro: end of UnInstallLib
!insertmacro: UnInstallLib
!insertmacro: end of UnInstallLib
!insertmacro: UnInstallLib
!insertmacro: end of UnInstallLib
!insertmacro: UnInstallLib
!insertmacro: end of UnInstallLib
!insertmacro: UnInstallLib
!insertmacro: end of UnInstallLib
!insertmacro: UninstallLib
!insertmacro: end of UninstallLib
!insertmacro: UninstallLib
!insertmacro: end of UninstallLib
RMDir: /r "$INSTDIR\*.*"
RMDir: "$INSTDIR"
Delete: "$DESKTOP\ADOTotalsShow.lnk"
Delete: "$SMPROGRAMS\ADOTotalsShow\*.*"
RMDir: "$SMPROGRAMS\ADOTotalsShow"
DeleteRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\ADOTotalsShow
DeleteRegKey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ADOTotalsShow
SectionEnd
Processed 1 file, writing output:
Adding plug-ins initializing function... Done!
Processing pages... Done!
Removing unused resources... Done!
Generating language tables... Done!
Generating uninstaller... Done!
Output: "D:\Dexta\Internet Code\crak\balance sheet\ATS Setup.exe"
Install: 5 pages (320 bytes), 1 section (1048 bytes), 986 instructions (27608 bytes), 191 strings (3365 bytes), 1 language table (302 bytes).
Uninstall: 5 pages (320 bytes),
1 section (1048 bytes), 322 instructions (9016 bytes), 140 strings (2389 bytes), 1 language table (290 bytes).
Datablock optimizer saved 34709 bytes (~2.4%).
Using bzip2 compression.
EXE header size: 46592 / 34304 bytes
Install code: 4584 / 33007 bytes
Install data: 1326362 / 3045905 bytes
Uninstall code+data: 22677 / 26790 bytes
CRC (0xEAC8D4E1): 4 / 4 bytes
Total size: 1400219 / 3140010 bytes (44.6%)
1 warning:
!warning: The MUI_PRODUCT and MUI_VERSION defines have been removed. Use a normal Name command now. (macro:MUI_INSERT:3)
Why does it generate this error despite it completes compilation and giving the setup program.
How do I now change the page titles to reflect the appliction being compilied?
im still in the pit !!!!
jzdexta
2nd February 2006 17:41 UTC
Have actually downloaded vb6sp6 so as to update my runtime files and wanted to have the same done to all machines i install my application instead of having all dlls and ocx files being bundled together with my application.
What i want to know is how do make the file run before executing the rest of the commands as in installing my application?
I do anticipate that the same applies if happen to include mdac_types 2.8 or any other executable file that has to be run before completing the installation of my application.
Can someone ples3e help me;)
Mr Inches
2nd February 2006 21:40 UTC
The warnings are being generated because the items you are setting (MUI_PRODUCT and MUI_FILE) are deprecated (discouraged from being used usually because they have replaced with something else). As I noted in my comments, use something like:
!define PRODUCT "ADOShow"
Name ${PRODUCT}
!define APPFILE "${PRODUCT}.exe"
and replace all occurences of MUI_PRODUCT with PRODUCT and MUI_FILE with APPFILE.
As for the title on each page, assuming you do the above, you could use something like:
Caption "${PRODUCT} Setup" ;this duplicates the default caption.
To install VBSP6, use ExecWait command to run the service pack installer in quiet mode. e.g.
ExecWait "VB6.0-KB290887-X86.exe" "/Q"
IfErrors FailedToInstallVBSP6
ServicePackOK:
kichik
3rd February 2006 11:30 UTC
Please attach large scripts or compiler outputs next time.
jzdexta
3rd February 2006 17:27 UTC
Kichik
If you culd have read from the top of this thread you could have found all the responses and areas that were really confusing i did provide the whole script unless its not showing on your browser.
All the same thanks to everyone who has been participating in this thread that has really tought me so much.
However something compels me to install the mdac setup file which if run in silent mode i almost doubt if it really installs, how would i be sure it really did?
Any ideas?
kichik
3rd February 2006 20:35 UTC
You have pasted in 4 very long makensis.exe outputs. That's what I see first when I look at this thread. It makes the thread hard to follow. Please attach it next time.
Mr Inches
5th February 2006 01:29 UTC
Re: MDAC installation.
This should be the same as the VB Service Pack, just check for a non-zero exitcode on return. Most programs return an exit code of non-zero if they didn't work.