Debian Codegraph @

common/unoninit.nsh

raw
1 ;===============================================
2 ; Requires following !defines in the calling *.nsi file
3 ; Examples:
4 ; ARCH "w64"
5 ; 32bit (w32) or 64bit (w64) package architecture
6 ;===============================================
7 ;
8 ;
9 ; set Registry view
10 !if ${ARCH} == "w64"
11 SetRegView 64
12 !else
13 SetRegView 32
14 !endif
15 ;
16 ; UnInstall as All Users if an admin
17 ;
18 Call un.IsUserAdmin
19 Pop $IsAdminUser
20 StrCmp $IsAdminUser "false" DefaultUser
21 SetShellVarContext all
22 Goto DefaultUser
23 DefaultUser: