summaryrefslogtreecommitdiff
path: root/Windows/esim-setup-script.nsi
diff options
context:
space:
mode:
authorBladen Martin2020-07-31 23:30:10 +0530
committerGitHub2020-07-31 23:30:10 +0530
commitb4f6a50446bd7e75fdbe11af6f934618b35d495e (patch)
treeaee2429f4efb9591a80045b702470cc495cd7e3c /Windows/esim-setup-script.nsi
parent207fa5ba56613331d605700b9bab9e87bf6bb94f (diff)
downloadeSim-b4f6a50446bd7e75fdbe11af6f934618b35d495e.tar.gz
eSim-b4f6a50446bd7e75fdbe11af6f934618b35d495e.tar.bz2
eSim-b4f6a50446bd7e75fdbe11af6f934618b35d495e.zip
7z for increased compression
Diffstat (limited to 'Windows/esim-setup-script.nsi')
-rw-r--r--Windows/esim-setup-script.nsi13
1 files changed, 7 insertions, 6 deletions
diff --git a/Windows/esim-setup-script.nsi b/Windows/esim-setup-script.nsi
index 15203e31..daaf4cc1 100644
--- a/Windows/esim-setup-script.nsi
+++ b/Windows/esim-setup-script.nsi
@@ -168,13 +168,13 @@ Section -NgspiceSim
SetOutPath "$EXEDIR"
- File "eSim.zip"
+ File "eSim.7z"
File "logo.ico"
SetOutPath "$INSTDIR"
- ;ADD YOUR OWN FILES HERE...
- ZipDLL::extractall "$EXEDIR\eSim.zip" "$INSTDIR\"
+ ;ADD YOUR OWN FILES HERE...
+ Nsis7z::ExtractWithDetails "$EXEDIR\eSim.7z" "Extracting eSim %s..."
;Copying Folder to install directory
@@ -206,7 +206,7 @@ Section -NgspiceSim
!insertmacro MUI_STARTMENU_WRITE_END
;Remove not required files
- Delete "$EXEDIR\eSim.zip"
+ Delete "$EXEDIR\eSim.7z"
Delete "$EXEDIR\logo.ico"
@@ -339,7 +339,7 @@ Section Uninstall
;Removing Env Variable for KiCad
GetFullPathName $1 $INSTDIR\..\KiCad\bin
- EnVar::DeleteValue "Path" $1
+ EnVar::DeleteValue "Path" $1
Pop $0
DetailPrint "EnVar::AddValue returned=|$0|"
@@ -356,6 +356,7 @@ Section Uninstall
RMDir /r "$PROFILE\.esim"
RMDir "$SMPROGRAMS\eSim"
RMDir /r "$INSTDIR\..\eSim"
+ RMDir /r "$INSTDIR\..\KiCad"
Delete "$PROFILE\..\Public\Desktop\eSim.lnk"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
@@ -374,4 +375,4 @@ SectionEnd
;!insertmacro MUI_DESCRIPTION_TEXT ${NgspiceSim} $(DESC_NgspiceSim)
;!insertmacro MUI_FUNCTION_DESCRIPTION_END
-;--------------------------------
+;-------------------------------- \ No newline at end of file