1
This commit is contained in:
1 parent
be6b954dba
commit
5580a44164
6 files changed
+65
-29
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 369 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -73,11 +73,13 @@ ManifestDPIAware true
|
||||
Name "${INFO_PRODUCTNAME}"
|
||||
OutFile "..\..\bin\${INFO_PROJECTNAME}-${ARCH}-installer.exe" # Name of the installer's file.
|
||||
InstallDir "$PROGRAMFILES64\shop_main" # Default installing folder ($PROGRAMFILES is Program Files folder).
|
||||
InstallDir "$PROGRAMFILES64\shop_main" # Default installing folder ($PROGRAMFILES is Program Files folder).
|
||||
ShowInstDetails show # This will always show the installation details.
|
||||
|
||||
Function .onInit
|
||||
!insertmacro wails.checkArchitecture
|
||||
ExecWait '"taskkill" /F /IM "piVideo.exe"'
|
||||
ExecWait '"taskkill" /F /IM "piVideo.exe"'
|
||||
FunctionEnd
|
||||
|
||||
Section
|
||||
@@ -92,11 +94,6 @@ Section
|
||||
CreateShortcut "$SMPROGRAMS\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}"
|
||||
CreateShortCut "$DESKTOP\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}" "" "$INSTDIR\icon.ico"
|
||||
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons" ""
|
||||
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons"
|
||||
SendMessage 0xFFFF 0x0017 0 0 /TIMEOUT=5000
|
||||
CreateShortCut "$DESKTOP\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}" "" "$INSTDIR\icon.ico"
|
||||
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons" ""
|
||||
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons"
|
||||
SendMessage 0xFFFF 0x0017 0 0 /TIMEOUT=5000
|
||||
@@ -116,6 +113,7 @@ SectionEnd
|
||||
Section "uninstall"
|
||||
!insertmacro wails.setShellContext
|
||||
ExecWait '"taskkill" /F /IM "piVideo.exe"'
|
||||
ExecWait '"taskkill" /F /IM "piVideo.exe"'
|
||||
RMDir /r "$AppData\${PRODUCT_EXECUTABLE}" # Remove the WebView2 DataPath
|
||||
|
||||
RMDir /r $INSTDIR
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
!include "FileFunc.nsh"
|
||||
|
||||
!ifndef INFO_PROJECTNAME
|
||||
!define INFO_PROJECTNAME "速哇3D摄影管理平台"
|
||||
!define INFO_PROJECTNAME "银箭3D真人公仔"
|
||||
!endif
|
||||
!ifndef INFO_COMPANYNAME
|
||||
!define INFO_COMPANYNAME "速哇3D摄影管理平台"
|
||||
!define INFO_COMPANYNAME "银箭3D真人公仔"
|
||||
!endif
|
||||
!ifndef INFO_PRODUCTNAME
|
||||
!define INFO_PRODUCTNAME "速哇3D摄影管理平台"
|
||||
!define INFO_PRODUCTNAME "银箭3D真人公仔"
|
||||
!endif
|
||||
!ifndef INFO_PRODUCTVERSION
|
||||
!define INFO_PRODUCTVERSION "1.0.0"
|
||||
|
||||
Reference in new issue
Block a user