I have recently compiled an .exe with the corisponding files into an installation package with NSI Edit.
When the program is intalled then executed it looks for the skin file and pops up an error that it can not find the Skin folder, which is located in program files/ms agent javascript editor/Skin
I have included the skin folder with the package. Does anyone know how to fix?
Maybe a registry issue of something?
I posted the code script used to pack the installation file.
The file program file is
www.websitecharacter.com
Thanks for your time.
Code:
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Ms Agent Javascript Editor"
!define PRODUCT_VERSION "1.3"
!define PRODUCT_PUBLISHER "Website Character"
!define PRODUCT_WEB_SITE "http://www.websitecharacter.com"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\MJE.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstal l\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "MJE\Licence.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\MJE.exe"
!insertmacro MUI_PAGE_FINISH
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
; Language files
!insertmacro MUI_LANGUAGE "English"
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Setup.exe"
InstallDir "$PROGRAMFILES\Ms Agent Javascript Editor"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
Section "MainSection" SEC01
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "MJE\MJE.exe"
CreateDirectory "$SMPROGRAMS\Ms Agent Javascript Editor"
CreateShortCut "$SMPROGRAMS\Ms Agent Javascript Editor\Ms Agent Javascript Editor.lnk" "$INSTDIR\MJE.exe"
CreateShortCut "$DESKTOP\Ms Agent Javascript Editor.lnk" "$INSTDIR\MJE.exe"
File "MJE\MJE.dat"
File "MJE\UILANG1.UDB"
File "MJE\UILANG2.UDB"
File "MJE\UninstallA387.DAT"
SetOutPath "$INSTDIR\Skin"
SetOverwrite try
File "MJE\Skin\arrows.bmp"
File "MJE\Skin\button-mdi.bmp"
File "MJE\Skin\button-toolbar.bmp"
File "MJE\Skin\Buttons.bmp"
File "MJE\Skin\check.bmp"
File "MJE\Skin\clips.bmp"
File "MJE\Skin\Combo-Arrows.bmp"
File "MJE\Skin\ctrl-close.bmp"
File "MJE\Skin\ctrl-max-dis.bmp"
File "MJE\Skin\ctrl-max.bmp"
File "MJE\Skin\ctrl-min-dis.bmp"
File "MJE\Skin\ctrl-min.bmp"
File "MJE\Skin\ctrl-rest.bmp"
File "MJE\Skin\dialog.bmp"
File "MJE\Skin\f-bot.bmp"
File "MJE\Skin\f-left.bmp"
File "MJE\Skin\f-right.bmp"
File "MJE\Skin\f-top.bmp"
File "MJE\Skin\grip.bmp"
File "MJE\Skin\hscroll_back.bmp"
File "MJE\Skin\hscroll_bar.bmp"
File "MJE\Skin\marrow.bmp"
File "MJE\Skin\menu.bmp"
File "MJE\Skin\menuborder.bmp"
File "MJE\Skin\menutool.bmp"
File "MJE\Skin\progress.bmp"
File "MJE\Skin\radio.bmp"
File "MJE\Skin\roll.bmp"
File "MJE\Skin\Skin.uis"
File "MJE\Skin\status.bmp"
File "MJE\Skin\sunkedge.bmp"
File "MJE\Skin\tabborder.bmp"
File "MJE\Skin\tabs.bmp"
File "MJE\Skin\toppanel.bmp"
File "MJE\Skin\vscroll_back.bmp"
File "MJE\Skin\vscroll_bar.bmp"
File "MJE\Skin\wbhelp2.dll"
File "MJE\Skin\wbhelper.exe"
File "MJE\Skin\wbocx.ocx"
SectionEnd
Section -AdditionalIcons
SetOutPath $INSTDIR
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateShortCut "$SMPROGRAMS\Ms Agent Javascript Editor\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\Ms Agent Javascript Editor\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\MJE.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\MJE.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
Function un.onUninstSuccess
HideWindow
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
FunctionEnd
Function un.onInit
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
Abort
FunctionEnd
Section Uninstall
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\Skin\wbocx.ocx"
Delete "$INSTDIR\Skin\wbhelper.exe"
Delete "$INSTDIR\Skin\wbhelp2.dll"
Delete "$INSTDIR\Skin\vscroll_bar.bmp"
Delete "$INSTDIR\Skin\vscroll_back.bmp"
Delete "$INSTDIR\Skin\toppanel.bmp"
Delete "$INSTDIR\Skin\tabs.bmp"
Delete "$INSTDIR\Skin\tabborder.bmp"
Delete "$INSTDIR\Skin\sunkedge.bmp"
Delete "$INSTDIR\Skin\status.bmp"
Delete "$INSTDIR\Skin\Skin.uis"
Delete "$INSTDIR\Skin\roll.bmp"
Delete "$INSTDIR\Skin\radio.bmp"
Delete "$INSTDIR\Skin\progress.bmp"
Delete "$INSTDIR\Skin\menutool.bmp"
Delete "$INSTDIR\Skin\menuborder.bmp"
Delete "$INSTDIR\Skin\menu.bmp"
Delete "$INSTDIR\Skin\marrow.bmp"
Delete "$INSTDIR\Skin\hscroll_bar.bmp"
Delete "$INSTDIR\Skin\hscroll_back.bmp"
Delete "$INSTDIR\Skin\grip.bmp"
Delete "$INSTDIR\Skin\f-top.bmp"
Delete "$INSTDIR\Skin\f-right.bmp"
Delete "$INSTDIR\Skin\f-left.bmp"
Delete "$INSTDIR\Skin\f-bot.bmp"
Delete "$INSTDIR\Skin\dialog.bmp"
Delete "$INSTDIR\Skin\ctrl-rest.bmp"
Delete "$INSTDIR\Skin\ctrl-min.bmp"
Delete "$INSTDIR\Skin\ctrl-min-dis.bmp"
Delete "$INSTDIR\Skin\ctrl-max.bmp"
Delete "$INSTDIR\Skin\ctrl-max-dis.bmp"
Delete "$INSTDIR\Skin\ctrl-close.bmp"
Delete "$INSTDIR\Skin\Combo-Arrows.bmp"
Delete "$INSTDIR\Skin\clips.bmp"
Delete "$INSTDIR\Skin\check.bmp"
Delete "$INSTDIR\Skin\Buttons.bmp"
Delete "$INSTDIR\Skin\button-toolbar.bmp"
Delete "$INSTDIR\Skin\button-mdi.bmp"
Delete "$INSTDIR\Skin\arrows.bmp"
Delete "$INSTDIR\UninstallA387.DAT"
Delete "$INSTDIR\UILANG2.UDB"
Delete "$INSTDIR\UILANG1.UDB"
Delete "$INSTDIR\MJE.dat"
Delete "$INSTDIR\MJE.exe"
Delete "$SMPROGRAMS\Ms Agent Javascript Editor\Uninstall.lnk"
Delete "$SMPROGRAMS\Ms Agent Javascript Editor\Website.lnk"
Delete "$DESKTOP\Ms Agent Javascript Editor.lnk"
Delete "$SMPROGRAMS\Ms Agent Javascript Editor\Ms Agent Javascript Editor.lnk"
RMDir "$SMPROGRAMS\Ms Agent Javascript Editor"
RMDir "$INSTDIR\Skin"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
SetAutoClose true
SectionEnd