diff options
author | rahulp13 | 2020-03-16 11:49:43 +0530 |
---|---|---|
committer | rahulp13 | 2020-03-16 11:49:43 +0530 |
commit | c2b4bedba011b72081282674197181cb4acc9f3c (patch) | |
tree | 6c976a21c929142f0db1d8dcd06e17c1b5c9fd80 | |
parent | a4bc69a2043711f9cdf857fb82847989cee17220 (diff) | |
download | eSim-c2b4bedba011b72081282674197181cb4acc9f3c.tar.gz eSim-c2b4bedba011b72081282674197181cb4acc9f3c.tar.bz2 eSim-c2b4bedba011b72081282674197181cb4acc9f3c.zip |
update script
-rw-r--r-- | Windows/esim-setup-script.nsi | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Windows/esim-setup-script.nsi b/Windows/esim-setup-script.nsi index 9804ee50..87f54bee 100644 --- a/Windows/esim-setup-script.nsi +++ b/Windows/esim-setup-script.nsi @@ -206,7 +206,7 @@ Section -NgspiceSim ;Create shortcuts ;create desktop shortcut - CreateShortCut "$DESKTOP\eSim.lnk" "$INSTDIR\eSim\eSim" "" "$PROFILE\.esim\logo.ico" "" SW_SHOWMINIMIZED + CreateShortCut "$PROFILE\..\Public\Desktop\eSim.lnk" "$INSTDIR\eSim\eSim" "" "$PROFILE\.esim\logo.ico" "" SW_SHOWMINIMIZED ;Remove not required files Delete "$EXEDIR\spice.zip" @@ -235,6 +235,7 @@ Section -InstallKiCad ;Remove not required files Delete "$EXEDIR\kicad-4.0.7-i686.exe" + Delete "$PROFILE\..\Public\Desktop\KiCad.lnk" ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\KiCad\bin" @@ -305,7 +306,8 @@ Section Uninstall Delete "$SMPROGRAMS\eSim\Uninstall.lnk" ;Removing Env Variable for KiCad - ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\..\KiCad\bin" + GetFullPathName $0 $INSTDIR\..\KiCad\bin + ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" $0 ;Remove KiCad config RMDir /r "$PROFILE\AppData\Roaming\kicad" @@ -317,7 +319,8 @@ Section Uninstall endActiveSync: ;Removing Env Variable for Ngspice - ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\..\spice\bin" + GetFullPathName $0 $INSTDIR\..\spice\bin + ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" $0 ;Removing Ngspice RMDir /r "$INSTDIR\..\spice" @@ -326,7 +329,7 @@ Section Uninstall RMDir /r "$PROFILE\.esim" RMDir "$SMPROGRAMS\eSim" RMDir /r "$INSTDIR\..\eSim" - Delete "$DESKTOP\eSim.lnk" + Delete "$PROFILE\..\Public\Desktop\eSim.lnk" DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" ;SetAutoClose true |