```nsis
!include "MUI.nsh"

!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"


ShowInstDetails hide

Name "SNAFU Python Manager"
OutFile "snafu-setup.exe"
InstallDir "$LOCALAPPDATA\Programs\SNAFU"


Section "SNAFU Python Manager"
    CreateDirectory "$INSTDIR"
    SetOutPath "$INSTDIR"

    File /r "snafu\*"

    nsExec::ExecToLog '$INSTDIR\python-setup.exe /quiet LauncherOnly=1'

    FileOpen $0 "$INSTDIR\cmd\snafu.cmd" w
    FileWrite $0 "@$\"$INSTDIR\lib\python.exe$\" -m snafu %*"
    FileClose $0

    # TODO: Add option to automatically append snafu to user's PATH.
    # This should be done with registry I guess.
    # The values are at `HKEY_CURRENT_USER\Environment`.

    WriteUninstaller "$INSTDIR\Uninstall.exe"
SectionEnd


Section "un.Uninstaller"
    Rmdir /r "$INSTDIR"
SectionEnd
```

Add a hack to remove Python from registe on init
user
```nsis
!include "MUI.nsh"

!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"


ShowInstDetails hide

Name "SNAFU Python Manager"
OutFile "snafu-setup.exe"
InstallDir "$LOCALAPPDATA\Programs\SNAFU"


Section "SNAFU Python Manager"
    CreateDirectory "$INSTDIR"
    SetOutPath "$INSTDIR"

    File /r "snafu\*"

    nsExec::ExecToLog '$INSTDIR\python-setup.exe /quiet LauncherOnly=1'

    # HACK: The installer registers the main Python distribution as installed,
    # and interferes with SNAFU. This removes Python from registry, but not
    # the Py launcher. <https://bugs.python.org/issue31694>
    nsExec::ExecToLog '$INSTDIR\python-setup.exe /quiet /uninstall'

    FileOpen $0 "$INSTDIR\cmd\snafu.cmd" w
    FileWrite $0 "@$\"$INSTDIR\lib\python.exe$\" -m snafu %*"
    FileClose $0

    # TODO: Add option to automatically append snafu to user's PATH.
    # This should be done with registry I guess.
    # The values are at `HKEY_CURRENT_USER\Environment`.

    WriteUninstaller "$INSTDIR\Uninstall.exe"
SectionEnd


Section "un.Uninstaller"
    Rmdir /r "$INSTDIR"
SectionEnd
```
assistant