Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-windows
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-windows
Commits
d2058453
Commit
d2058453
authored
8 years ago
by
Edric Milaret
Committed by
gerrit2
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
allow to remove conf/history files on uninstall
Change-Id: Iad5f9dc037be2d147db0604d11aa35a7af079591 Tuleap: #72
parent
bdc2ce2e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ring.nsi
+22
-0
22 additions, 0 deletions
ring.nsi
with
22 additions
and
0 deletions
ring.nsi
+
22
−
0
View file @
d2058453
...
...
@@ -29,6 +29,11 @@
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!define MUI_PAGE_CUSTOMFUNCTION_SHOW un.ModifyUnWelcome
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE un.LeaveUnWelcome
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
RequestExecutionLevel admin ;Require admin rights on NT6+ (When UAC is turned on)
...
...
@@ -135,6 +140,23 @@ function un.onInit
!insertmacro VerifyUserIsAdmin
functionEnd
Function un.ModifyUnWelcome
${NSD_CreateCheckbox} 120u -18u 50% 12u "Remove configuration and history files"
Pop $1
SetCtlColors $1 "" ${MUI_BGCOLOR}
${NSD_Check} $1 ; Check it by default
FunctionEnd
Function un.LeaveUnWelcome
${NSD_GetState} $1 $0
${If} $0 <> 0
rmDir /r "$LOCALAPPDATA\${COMPANYNAME}"
rmDir /r "$PROFILE\.config\ring"
rmDir /r "$PROFILE\.cache\ring"
rmDir /r "$PROFILE\.local\share\ring"
${EndIf}
FunctionEnd
section "uninstall"
# Remove Start Menu launcher
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment