Guest User

Activerse v1.3.1 NSI

a guest
Dec 14th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | Source Code | 0 0
  1. OutFile "Activerse-v1-3-1-Setup.exe"
  2. Name "Activerse Installer v1.3.1"
  3. InstallDir "$PROFILE\Documents\ActiverseInstaller-v1-3-1"
  4. SetCompress Auto
  5.  
  6. Section "Install Activerse"
  7. ; Set the target installation directory
  8. SetOutPath "$INSTDIR"
  9.  
  10. ; Include all files and subdirectories from the Activerse folder
  11. File /r "C:\Users\agniv\Desktop\Activerse\*.*"
  12.  
  13. ; Attempt to find VS Code path dynamically
  14. ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\Code.exe" ""
  15.  
  16. ; Check if the path was found
  17. IfFileExists "$0" 0 +2
  18. Goto CreateShortcut
  19.  
  20. ; If not found, set a fallback
  21. MessageBox MB_ICONEXCLAMATION|MB_OK \
  22. "VS Code not found. Please install it or set up manually. Regressing to default install."
  23. Goto End
  24.  
  25. CreateShortcut:
  26. ; Create a shortcut to open Activerse in VS Code
  27. CreateShortcut "$SMPROGRAMS\Activerse in VSCode.lnk" "$0" '"$INSTDIR"'
  28.  
  29. End:
  30.  
  31. SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment