; Virtual Hypnotist 5.x NSIS package script

; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Virtual Hypnotist"
!define PRODUCT_VERSION "5.61"
!define PRODUCT_PUBLISHER "FollowTheWatch Software"
!define PRODUCT_WEB_SITE "http://vhypno.sourceforge.net"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\VH.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"

; Location where VH files are stored
;example: !define LOCAL_FILES "C:\vh"
!define LOCAL_FILES "H:\Stuff\test\vh\dev\vh-vb6"
!define WINDOWS_DIR "C:\WINDOWS"
!define SYSTEM_DIR "C:\WINDOWS\System32"

; MUI 1.67 compatible ------
!include "MUI.nsh"

SetCompressor lzma
VIAddVersionKey ProductName "Virtual Hypnotist"
VIAddVersionKey FileDescription "Virtual Hypnotist Software"
VIAddVersionKey CompanyName "FollowTheWatch Software"
VIAddVersionKey LegalCopyright "©2003-2008 FollowTheWatch55"
VIAddVersionKey FileVersion "5.6.1.707"
VIAddVersionKey ProductVersion "5.6.1.707"
VIProductVersion 5.6.1.707

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${LOCAL_FILES}\hypno.ico"
!define MUI_UNICON "${LOCAL_FILES}\hypno.ico"
;!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp"
;!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange-uninstall.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "${LOCAL_FILES}\Package\install.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${LOCAL_FILES}\Package\install.bmp"

; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "${LOCAL_FILES}\gpl.txt"
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Start menu page
var ICONS_GROUP
var AddIcons
;!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Virtual Hypnotist"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\VH.exe"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.rtf"
!insertmacro MUI_PAGE_FINISH

; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES

; Language files
!insertmacro MUI_LANGUAGE "English"

; MUI end ------

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "vhypno561.exe"
InstallDir "$PROGRAMFILES\Virtual Hypnotist"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails hide
ShowUnInstDetails show
AutoCloseWindow false
XPStyle on
  
Section "!Main application files" SEC01
  SectionIn 1 RO
  SetOutPath "$INSTDIR"
  SetOverwrite on
  File "${LOCAL_FILES}\changelog.txt"
  File "${LOCAL_FILES}\versions.txt"
  File "${LOCAL_FILES}\vh.chm"
  File "${LOCAL_FILES}\back.bmp"
  File "${LOCAL_FILES}\readme.rtf"
  File "${LOCAL_FILES}\gpl.txt"
  File "${LOCAL_FILES}\VH.exe"
  File "${LOCAL_FILES}\VHPack.exe"
  File "${LOCAL_FILES}\vbuzip10.dll"
  File "${LOCAL_FILES}\vbzip11.dll"
  SetOutPath "$INSTDIR\logs"
  File "${LOCAL_FILES}\logs\6-13-2004.txt"
  SetOutPath "$INSTDIR\sessions"
  File "${LOCAL_FILES}\sessions\test.hyp"
  File "${LOCAL_FILES}\sessions\coolmindfrag.hyp"
  File "${LOCAL_FILES}\sessions\coolmindfrag2.hyp"
  File "${LOCAL_FILES}\sessions\coolmindfrag3.hyp"
  File "${LOCAL_FILES}\sessions\visualdemo.hyp"
  File "${LOCAL_FILES}\sessions\visualdemo2.hyp"
  File "${LOCAL_FILES}\sessions\hypnotic_eye.hyp"
  File "${LOCAL_FILES}\sessions\kaa.hyp"
  File "${LOCAL_FILES}\sessions\kaa2.hyp"
  File "${LOCAL_FILES}\sessions\kaa-background.hyp"
  File "${LOCAL_FILES}\sessions\wacko.hyp"
  File "${LOCAL_FILES}\sessions\wacko2.hyp"
  File "${LOCAL_FILES}\sessions\grockdemo.hyp"
  File "${LOCAL_FILES}\sessions\oobe_tunnel.hyp"
  File "${LOCAL_FILES}\sessions\coolmindfrag3b.hyp"
  File "${LOCAL_FILES}\sessions\eyes2.hyp"
  File "${LOCAL_FILES}\sessions\grock2.hyp"
  File "${LOCAL_FILES}\sessions\spiralvisual1.hyp"
  File "${LOCAL_FILES}\sessions\visualdemo3.hyp"
  File "${LOCAL_FILES}\sessions\hypnoticeyeDIY.hyp"
  File "${LOCAL_FILES}\sessions\hypnoticeyeDIY.txt"
  File "${LOCAL_FILES}\sessions\brainwasheye.hyp"
  File "${LOCAL_FILES}\sessions\owned.hyp"
  File "${LOCAL_FILES}\sessions\brainwasheye_and_owned.txt"
  File "${LOCAL_FILES}\sessions\brainwasheye2.hyp"
  File "${LOCAL_FILES}\sessions\visualdemo4.hyp"
  ;start menu icons
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Release Notes.lnk" "$INSTDIR\readme.rtf"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Users Guide.lnk" "$INSTDIR\vh.chm"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Virtual Hypnotist.lnk" "$INSTDIR\VH.exe"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Package Installer.lnk" "$INSTDIR\VHPack.exe"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd

Section "Desktop icons" SEC02
  CreateShortCut "$DESKTOP\Virtual Hypnotist.lnk" "$INSTDIR\VH.exe"
  StrCpy $AddIcons "true"
SectionEnd
  
Section "Audio files" SEC03
  SetOutPath "$INSTDIR"
  File "${LOCAL_FILES}\pink_inv.wav"
  SetOutPath "$INSTDIR\audio"
  File "${LOCAL_FILES}\audio\1.mp3"
  File "${LOCAL_FILES}\audio\6.mp3"
  File "${LOCAL_FILES}\audio\5.mp3"
  File "${LOCAL_FILES}\audio\3.mp3"
  File "${LOCAL_FILES}\audio\2.mp3"
  File "${LOCAL_FILES}\audio\8.mp3"
  File "${LOCAL_FILES}\audio\hyp.mp3"
  SetOutPath "$INSTDIR\sounds"
  File "${LOCAL_FILES}\sounds\hypno.wma"
  File "${LOCAL_FILES}\sounds\snap.wav"
  File "${LOCAL_FILES}\sounds\Snap Very Loud.mp3"
  File "${LOCAL_FILES}\sounds\Snap Loud w 6 Echos.mp3"
SectionEnd

Section "Video files" SEC04
  SetOutPath "$INSTDIR\videos"
  File "${LOCAL_FILES}\videos\spurt.gif"
  File "${LOCAL_FILES}\videos\spiral2.swf"
  File "${LOCAL_FILES}\videos\pendulum1.gif"
  File "${LOCAL_FILES}\videos\kscope.gif"
  File "${LOCAL_FILES}\videos\illusion.avi"
  File "${LOCAL_FILES}\videos\hypnovideo.m1v"
  File "${LOCAL_FILES}\videos\hypnospiral.m1v"
  File "${LOCAL_FILES}\videos\coolspiral.m1v"
  File "${LOCAL_FILES}\videos\colors.m1v"
  File "${LOCAL_FILES}\videos\watch.gif"
  File "${LOCAL_FILES}\videos\kaa.avi"
  File "${LOCAL_FILES}\videos\mandara.swf"
  File "${LOCAL_FILES}\videos\colorflash.gif"
SectionEnd

Section "Main Hypnosis scripts" SEC05
  SetOutPath "$INSTDIR\inductions"
  File "${LOCAL_FILES}\inductions\trigger.txt"
  File "${LOCAL_FILES}\inductions\Seven_Plus_or_Minus_Two.txt"
  File "${LOCAL_FILES}\inductions\longinduction.txt"
  File "${LOCAL_FILES}\inductions\featuretest.txt"
  File "${LOCAL_FILES}\inductions\eyeballs up.txt"
  File "${LOCAL_FILES}\inductions\defaultinduct.txt"
  File "${LOCAL_FILES}\inductions\defaultinduct-spanish.txt"
  File "${LOCAL_FILES}\inductions\confusion.txt"
  File "${LOCAL_FILES}\inductions\association method.txt"
  File "${LOCAL_FILES}\inductions\basic.txt"
  File "${LOCAL_FILES}\inductions\spiral induction.txt"
  File "${LOCAL_FILES}\inductions\Induction - Spiral Induction.txt"
  File "${LOCAL_FILES}\inductions\Focuscarefree.txt"
  File "${LOCAL_FILES}\inductions\jc mindmix.txt"
  File "${LOCAL_FILES}\inductions\Whole Self Integration.txt"
  SetOutPath "$INSTDIR\deepeners"
  File "${LOCAL_FILES}\deepeners\anesthesia.txt"
  File "${LOCAL_FILES}\deepeners\longislanddeepener.txt"
  File "${LOCAL_FILES}\deepeners\defaultdeep.txt"
  File "${LOCAL_FILES}\deepeners\defaultdeep-spanish.txt"
  File "${LOCAL_FILES}\deepeners\defaultdeep with question.txt"
  File "${LOCAL_FILES}\deepeners\room of nothingness.txt"
  File "${LOCAL_FILES}\deepeners\Deep and Dreamy Ultimate.txt"
  File "${LOCAL_FILES}\deepeners\Deep and Dreamy.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Count Down From Ten.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Eye Catalepsy 2 - bottomforuse.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Eye Catalepsy 2.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Eye Catalepsy Basic.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Eye Catalepsy.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Eyes Open 2.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Eyes Open Enhanced.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Positive Trigger Affirmation 1.txt"
  File "${LOCAL_FILES}\deepeners\Deepener - Query Trigger Status 1.txt"
  File "${LOCAL_FILES}\deepeners\Train - Succeptible.txt"
  SetOutPath "$INSTDIR\suggestions"
  File "${LOCAL_FILES}\suggestions\defaultsuggest.txt"
  File "${LOCAL_FILES}\suggestions\triggersugg-voice.txt"
  File "${LOCAL_FILES}\suggestions\triggersugg-indirect.txt"
  File "${LOCAL_FILES}\suggestions\triggersugg.txt"
  File "${LOCAL_FILES}\suggestions\successloop.txt"
  File "${LOCAL_FILES}\suggestions\success.txt"
  File "${LOCAL_FILES}\suggestions\Number Press.txt"
  File "${LOCAL_FILES}\suggestions\Number Press 2.txt"
  File "${LOCAL_FILES}\suggestions\Hand Drop-voice.txt"
  File "${LOCAL_FILES}\suggestions\Hand Drop.txt"
  File "${LOCAL_FILES}\suggestions\Hand Drop Updated.txt"
  File "${LOCAL_FILES}\suggestions\Audio Suggestion.txt"
  File "${LOCAL_FILES}\suggestions\Instant - Check Time.txt"
  File "${LOCAL_FILES}\suggestions\Instant - Emergency Exit.txt"
  File "${LOCAL_FILES}\suggestions\Instant - Quick Freeze Test.txt"
  File "${LOCAL_FILES}\suggestions\Instant - Safety Net.txt"
  File "${LOCAL_FILES}\suggestions\Suggestion - Forget What You Were Just Doing.txt"
  File "${LOCAL_FILES}\suggestions\Instant - Data Save And Restore.txt"
  File "${LOCAL_FILES}\suggestions\Suggestion - Balloon Rising Arm.txt"
  File "${LOCAL_FILES}\suggestions\Suggestion - One Time Preparation.txt"
  File "${LOCAL_FILES}\suggestions\Suggestion - Placement Conclusion.txt"
  File "${LOCAL_FILES}\suggestions\Trigger - One Time Preparation.txt"
  File "${LOCAL_FILES}\suggestions\Trigger - Placement Conclusion.txt"
  File "${LOCAL_FILES}\suggestions\bike safety.txt"
  File "${LOCAL_FILES}\suggestions\reactiontime.txt"
  SetOutPath "$INSTDIR\wakenings"
  File "${LOCAL_FILES}\wakenings\defaultwake.txt"
  File "${LOCAL_FILES}\wakenings\Awaken and Forget.txt"
  SetOutPath "$INSTDIR\subliminals"
  File "${LOCAL_FILES}\subliminals\defaultsub.txt"
  SetOutPath "$INSTDIR\wordlists"
  File "${LOCAL_FILES}\wordlists\default.txt"
  File "${LOCAL_FILES}\wordlists\reinduction.txt"
SectionEnd

Section "Recreational Scripts" SEC06
  SetOutPath "$INSTDIR\inductions"
  File "${LOCAL_FILES}\inductions\SlaveTest.txt"
  File "${LOCAL_FILES}\inductions\FreezeTest.txt"
  File "${LOCAL_FILES}\inductions\DominantInduction.txt"
  File "${LOCAL_FILES}\inductions\kaa induction.txt"
  File "${LOCAL_FILES}\inductions\robotcontrol1.txt"
  File "${LOCAL_FILES}\inductions\hypnoticeyeDIY.txt"
  File "${LOCAL_FILES}\inductions\obeye.txt"
  File "${LOCAL_FILES}\inductions\ownup.txt"
  File "${LOCAL_FILES}\inductions\breathing and trigger induction.txt"
  File "${LOCAL_FILES}\inductions\Hive drone with wakener.txt"
  ;SetOutPath "$INSTDIR\deepeners"
  SetOutPath "$INSTDIR\suggestions"
  File "${LOCAL_FILES}\suggestions\TrigRobot.txt"
  File "${LOCAL_FILES}\suggestions\TrigFreeze2.txt"
  File "${LOCAL_FILES}\suggestions\stagehyp-all.txt"
  File "${LOCAL_FILES}\suggestions\stagehyp6 - gender.txt"
  File "${LOCAL_FILES}\suggestions\stagehyp5 - president.txt"
  File "${LOCAL_FILES}\suggestions\stagehyp4 - alphabet.txt"
  File "${LOCAL_FILES}\suggestions\stagehyp3 - age.txt"
  File "${LOCAL_FILES}\suggestions\stagehyp2 - coldwarm.txt"
  File "${LOCAL_FILES}\suggestions\stagehyp1 - arms.txt"
  File "${LOCAL_FILES}\suggestions\hypnoslave-voice.txt"
  File "${LOCAL_FILES}\suggestions\hypnoslave-snap.txt"
  File "${LOCAL_FILES}\suggestions\hypnoslave.txt"
  File "${LOCAL_FILES}\suggestions\TrigRobot-voice.txt"
  File "${LOCAL_FILES}\suggestions\mindfrag.txt"
  File "${LOCAL_FILES}\suggestions\mindfrag-fx.txt"
  File "${LOCAL_FILES}\suggestions\randomtest.txt"
  File "${LOCAL_FILES}\suggestions\randomtest-spanish.txt"
  File "${LOCAL_FILES}\suggestions\statue1.txt"
  File "${LOCAL_FILES}\suggestions\brainwash.txt"
  File "${LOCAL_FILES}\suggestions\brainwash2.txt"
  File "${LOCAL_FILES}\suggestions\forget.txt"
  File "${LOCAL_FILES}\suggestions\Instant - Strip Now.txt"
  File "${LOCAL_FILES}\suggestions\Suggestion - Mindless Hypnotized Slave.txt"
  ;File "${LOCAL_FILES}\suggestions\Random - Triggers and Suggestion Adult1.txt"
  ;File "${LOCAL_FILES}\suggestions\Suggestion - List Adult Female 1.txt"
  ;File "${LOCAL_FILES}\suggestions\Suggestion - List Adult Male 1.txt"
  ;File "${LOCAL_FILES}\suggestions\Trigger - List Adult Female 1.txt"
  ;File "${LOCAL_FILES}\suggestions\Trigger - List Adult Male 1.txt"
  File "${LOCAL_FILES}\suggestions\Basic Silver-bot.txt"
  File "${LOCAL_FILES}\suggestions\magicspell.txt"
  File "${LOCAL_FILES}\suggestions\trustwords.txt"
  SetOutPath "$INSTDIR\wakenings"
  File "${LOCAL_FILES}\wakenings\forget.txt"
  File "${LOCAL_FILES}\wakenings\forget-spanish.txt"
  File "${LOCAL_FILES}\wakenings\obey.txt"
  File "${LOCAL_FILES}\wakenings\robotwake1-clean.txt"
  File "${LOCAL_FILES}\wakenings\Amnesia Reinduction.txt"
  ;SetOutPath "$INSTDIR\subliminals"
SectionEnd

Section /o "Source code" SEC07
  SetOutPath "$INSTDIR"
  File "${LOCAL_FILES}\VH.vbp"
  File "${LOCAL_FILES}\hypno.ico"
  SetOutPath "$INSTDIR\source"
  File "${LOCAL_FILES}\source\Binaural.frm"
  File "${LOCAL_FILES}\source\Binaural.frx"
  File "${LOCAL_FILES}\source\VisualMaker.frm"
  File "${LOCAL_FILES}\source\VisualMaker.frx"
  File "${LOCAL_FILES}\source\SubContolPanel.frm"
  File "${LOCAL_FILES}\source\SubContolPanel.frx"
  File "${LOCAL_FILES}\source\scriptmaker.frm"
  File "${LOCAL_FILES}\source\scriptmaker.frx"
  File "${LOCAL_FILES}\source\ScreenCapture.bas"
  File "${LOCAL_FILES}\source\ScreenCap.frm"
  File "${LOCAL_FILES}\source\Message.frm"
  File "${LOCAL_FILES}\source\Message.frx"
  File "${LOCAL_FILES}\source\Main.frm"
  File "${LOCAL_FILES}\source\Main.frx"
  File "${LOCAL_FILES}\source\Logbook.frm"
  File "${LOCAL_FILES}\source\Logbook.frx"
  File "${LOCAL_FILES}\source\Hypno.frm"
  File "${LOCAL_FILES}\source\Hypno.frx"
  File "${LOCAL_FILES}\source\frmSub.frm"
  File "${LOCAL_FILES}\source\frmSplash.frm"
  File "${LOCAL_FILES}\source\frmSplash.frx"
  File "${LOCAL_FILES}\source\frmSession.frm"
  File "${LOCAL_FILES}\source\frmSession.frx"
  File "${LOCAL_FILES}\source\frmAbout.frm"
  File "${LOCAL_FILES}\source\frmAbout.frx"
  File "${LOCAL_FILES}\source\DialogYesNo.frm"
  File "${LOCAL_FILES}\source\DialogYesNo.frx"
  File "${LOCAL_FILES}\source\DialogText.frm"
  File "${LOCAL_FILES}\source\DialogText.frx"
  File "${LOCAL_FILES}\source\Code.bas"
  File "${LOCAL_FILES}\source\ColorFader.cls"
  File "${LOCAL_FILES}\source\GRCircle.bas"
  File "${LOCAL_FILES}\source\Spiral.bas"
  File "${LOCAL_FILES}\source\ChangeRes.bas"
  File "${LOCAL_FILES}\source\frmMode.frx"
  File "${LOCAL_FILES}\source\frmMode.frm"
  File "${LOCAL_FILES}\source\frmPreview.frm"
  File "${LOCAL_FILES}\source\frmPreview.frx"
  File "${LOCAL_FILES}\source\LoadDialog.frm"
  File "${LOCAL_FILES}\source\LoadDialog.frx"
  File "${LOCAL_FILES}\source\frmPresets.frm"
  File "${LOCAL_FILES}\source\frmPresets.frx"
  File "${LOCAL_FILES}\source\frmSRTest.frm"
  File "${LOCAL_FILES}\source\frmSRTest.frx"
  File "${LOCAL_FILES}\source\frmRemote.frm"
  File "${LOCAL_FILES}\source\frmRemote.frx"
  File "${LOCAL_FILES}\source\frmUser.frm"
  File "${LOCAL_FILES}\source\frmUser.frx"
  File "${LOCAL_FILES}\source\aimAbout.frm"
  File "${LOCAL_FILES}\source\aimAbout.frx"
  File "${LOCAL_FILES}\source\aimAway.frm"
  File "${LOCAL_FILES}\source\aimAway.frx"
  File "${LOCAL_FILES}\source\aimBuddyList.frm"
  File "${LOCAL_FILES}\source\aimBuddyList.frx"
  File "${LOCAL_FILES}\source\aimChatJoin.frm"
  File "${LOCAL_FILES}\source\aimChatJoin.frx"
  File "${LOCAL_FILES}\source\aimChatRoom.frm"
  File "${LOCAL_FILES}\source\aimChatRoom.frx"
  File "${LOCAL_FILES}\source\aimConvert.frm"
  File "${LOCAL_FILES}\source\aimConvert.frx"
  File "${LOCAL_FILES}\source\aimDebug.frm"
  File "${LOCAL_FILES}\source\aimDebug.frx"
  File "${LOCAL_FILES}\source\aimError.frm"
  File "${LOCAL_FILES}\source\aimError.frx"
  File "${LOCAL_FILES}\source\aimIM.frm"
  File "${LOCAL_FILES}\source\aimIM.frx"
  File "${LOCAL_FILES}\source\aimInfo.frm"
  File "${LOCAL_FILES}\source\aimInfo.frx"
  File "${LOCAL_FILES}\source\aimInvitation.frm"
  File "${LOCAL_FILES}\source\aimInvitation.frx"
  File "${LOCAL_FILES}\source\aimInvite.frm"
  File "${LOCAL_FILES}\source\aimInvite.frx"
  File "${LOCAL_FILES}\source\aimOptions.frm"
  File "${LOCAL_FILES}\source\aimOptions.frx"
  File "${LOCAL_FILES}\source\AIMPass.bas"
  File "${LOCAL_FILES}\source\aimProfile.frm"
  File "${LOCAL_FILES}\source\aimProfile.frx"
  File "${LOCAL_FILES}\source\aimSignOn.frm"
  File "${LOCAL_FILES}\source\aimSignOn.frx"
  File "${LOCAL_FILES}\source\modAIM.bas"
  File "${LOCAL_FILES}\source\modInfo.bas"
  File "${LOCAL_FILES}\source\RegStuff.cls"
  File "${LOCAL_FILES}\source\rtfform.frm"
  File "${LOCAL_FILES}\source\rtfform.frx"
  File "${LOCAL_FILES}\source\suak.bas"
  File "${LOCAL_FILES}\source\console.frm"
  File "${LOCAL_FILES}\source\console.frx"
  File "${LOCAL_FILES}\source\frmViewer.frm"
  File "${LOCAL_FILES}\source\frmViewer.frx"
  File "${LOCAL_FILES}\source\TrayIcon.cls"
  File "${LOCAL_FILES}\source\FileEditor.frm"
  File "${LOCAL_FILES}\source\FileEditor.frx"
  File "${LOCAL_FILES}\source\frmFindReplace.frm"
  File "${LOCAL_FILES}\source\frm3D.frm"
  File "${LOCAL_FILES}\source\TextForm.frm"
  File "${LOCAL_FILES}\source\DownloaderAbout.pag"
  File "${LOCAL_FILES}\source\DownLoad_Properties.pag"
  File "${LOCAL_FILES}\source\DLMain.ctl"
  File "${LOCAL_FILES}\source\DLMain.ctx"
  File "${LOCAL_FILES}\source\Downloader.frm"
  File "${LOCAL_FILES}\source\Downloader.frx"  
  File "${LOCAL_FILES}\source\mZip.bas"
  File "${LOCAL_FILES}\source\cZip.cls"
  File "${LOCAL_FILES}\source\frmPackage.frm"
  File "${LOCAL_FILES}\source\frmPackage.frx"
  File "${LOCAL_FILES}\source\frmRemoteList.frm"
  File "${LOCAL_FILES}\source\frmRemoteList.frx"
  File "${LOCAL_FILES}\source\ScriptProcessor.bas"
  File "${LOCAL_FILES}\source\GDI.bas"
  File "${LOCAL_FILES}\source\frmCharAnim.frm"
  File "${LOCAL_FILES}\source\frmCharAnim.frx"
  File "${LOCAL_FILES}\source\ECG.cls"
  File "${LOCAL_FILES}\source\EncryptXOR.cls"
  File "${LOCAL_FILES}\source\modEncryption.bas"
  File "${LOCAL_FILES}\source\ChooseURL.frm"
  File "${LOCAL_FILES}\source\ChooseURL.frx"
  SetOutPath "$INSTDIR\screensaver"
  File "${LOCAL_FILES}\screensaver\Code.bas"
  File "${LOCAL_FILES}\screensaver\Options.frm"
  File "${LOCAL_FILES}\screensaver\Options.frx"
  File "${LOCAL_FILES}\screensaver\VH_Screensaver.vbp"
  SetOutPath "$INSTDIR\package"
  File "${LOCAL_FILES}\package\install-stable.nsi"
  File "${LOCAL_FILES}\package\install-upgrade.nsi"
  File "${LOCAL_FILES}\package\install.bmp"
  SetOutPath "$INSTDIR\vhpack"
  File "${LOCAL_FILES}\vhpack\Form1.frm"
  File "${LOCAL_FILES}\vhpack\Form1.frx"
  File "${LOCAL_FILES}\vhpack\VHPack.vbp"
  File "${LOCAL_FILES}\vhpack\cUnZip.cls"
  File "${LOCAL_FILES}\vhpack\frmOverwrite.frm"
  File "${LOCAL_FILES}\vhpack\frmOverwrite.frx"
  File "${LOCAL_FILES}\vhpack\mUnzip.bas"
SectionEnd

Section "Animated characters" SEC08
  SetOutPath "$WINDIR\msagent\chars"
  SetOverwrite ifnewer
  File "${WINDOWS_DIR}\msagent\chars\Woo.acs"
  File "${WINDOWS_DIR}\msagent\chars\Vrgirl.acs"
  File "${WINDOWS_DIR}\msagent\chars\mouth.acs"
  File "${WINDOWS_DIR}\msagent\chars\eye.acs"
  File "${WINDOWS_DIR}\msagent\chars\E-woman.acs"
  File "${WINDOWS_DIR}\msagent\chars\Angie.acs"
SectionEnd

Section "Required system files" SEC09
  SetOutPath "$SYSDIR"
  ;File "${SYSTEM_DIR}\FM20.oca"
  File "${SYSTEM_DIR}\FM20.DLL"
  File "${SYSTEM_DIR}\FM20ENU.DLL"
  File "${SYSTEM_DIR}\COMDLG32.OCX"
  File "${SYSTEM_DIR}\MSCOMCTL.OCX"
  File "${SYSTEM_DIR}\MSCOMCT2.OCX"
  File "${SYSTEM_DIR}\MSSTDFMT.DLL"
;  File "${SYSTEM_DIR}\COMCAT.DLL"
;  File "${SYSTEM_DIR}\ASYCFILT.DLL"
;  File "${SYSTEM_DIR}\OLEPRO32.DLL"
;  File "${SYSTEM_DIR}\OLEAUT32.DLL"
  File "${SYSTEM_DIR}\MSVBVM60.DLL"
  File "${SYSTEM_DIR}\RICHTX32.OCX"
  File "${SYSTEM_DIR}\TABCTL32.OCX"
  File "${SYSTEM_DIR}\MSWINSCK.OCX"
  File "${SYSTEM_DIR}\DX8VB.DLL"

  RegDLL "$SYSDIR\COMDLG32.OCX"
  RegDLL "$SYSDIR\MSCOMCTL.OCX"
  RegDLL "$SYSDIR\MSCOMCT2.OCX"
  RegDLL "$SYSDIR\FM20.DLL"
;  RegDLL "$SYSDIR\COMCAT.DLL"
  RegDLL "$SYSDIR\MSDXM.OCX"
  RegDLL "$SYSDIR\speech\vdict.dll"
;  RegDLL "$SYSDIR\OLEPRO32.DLL"
;  RegDLL "$SYSDIR\OLEAUT32.DLL"
  RegDLL "$SYSDIR\MSVBVM60.DLL"
  RegDLL "$SYSDIR\RICHTX32.OCX"
  RegDLL "$SYSDIR\TABCTL32.OCX"
  RegDLL "$SYSDIR\MSWINSCK.OCX"
  RegDLL "$SYSDIR\MSSTDFMT.DLL"
  RegDLL "$SYSDIR\DX8VB.DLL"
  
  Push "$SYSDIR\FM20ENU.DLL"
  Call AddSharedDLL
  Push "$SYSDIR\COMDLG32.OCX"
  Call AddSharedDLL
  Push "$SYSDIR\MSCOMCTL.OCX"
  Call AddSharedDLL
  Push "$SYSDIR\MSCOMCT2.OCX"
  Call AddSharedDLL
  Push "$SYSDIR\FM20.DLL"
  Call AddSharedDLL
;  Push "$SYSDIR\ASYCFILT.DLL"
;  Call AddSharedDLL
;  Push "$SYSDIR\OLEPRO32.DLL"
;  Call AddSharedDLL
  Push "$SYSDIR\MSVBVM60.DLL"
  Call AddSharedDLL
;  Push "$SYSDIR\OLEAUT32.DLL"
;  Call AddSharedDLL
;  Push "$SYSDIR\COMCAT.DLL"
;  Call AddSharedDLL
  Push "$SYSDIR\RICHTX32.OCX"
  Call AddSharedDLL
  Push "$SYSDIR\TABCTL32.OCX"
  Call AddSharedDLL
  Push "$SYSDIR\MSWINSCK.OCX"
  Call AddSharedDLL
  Push "$SYSDIR\MSSTDFMT.DLL"
  Call AddSharedDLL
  Push "$SYSDIR\DX8VB.DLL"
  Call AddSharedDLL
SectionEnd

Section "ColorTunnel 2.0 application" SEC10
  SetOutPath "$INSTDIR\colortunnel"
  File "${LOCAL_FILES}\colortunnel\ColorTunnel.exe"
  File "${LOCAL_FILES}\colortunnel\ColorTunnel.ico"
  File "${LOCAL_FILES}\colortunnel\ColorTunnel.vbp"
  File "${LOCAL_FILES}\colortunnel\Form1.frm"
  File "${LOCAL_FILES}\colortunnel\Form1.frx"
  File "${LOCAL_FILES}\colortunnel\Form2.frm"
  File "${LOCAL_FILES}\colortunnel\Form2.frx"
  File "${LOCAL_FILES}\colortunnel\Form3.frm"
  File "${LOCAL_FILES}\colortunnel\GRCircle.bas"
  StrCmp $ADDICONS "true" 0 +3
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\ColorTunnel.lnk" "$INSTDIR\colortunnel\ColorTunnel.exe"
  CreateShortCut "$DESKTOP\ColorTunnel.lnk" "$INSTDIR\colortunnel\ColorTunnel.exe"
SectionEnd

Section "ScreenSaver application" SEC11
  SetOutPath "$SYSDIR"
  File "${LOCAL_FILES}\screensaver\Virtual Hypnotist.scr"
SectionEnd

Section "3D Data files" SEC12
  SetOutPath "$INSTDIR\data"
  File "${LOCAL_FILES}\data\bg11.jpg"
  File "${LOCAL_FILES}\data\bg14.jpg"
  File "${LOCAL_FILES}\data\bg4l.jpg"
  File "${LOCAL_FILES}\data\bg54.jpg"
  File "${LOCAL_FILES}\data\bgc1.jpg"
  File "${LOCAL_FILES}\data\bluefloor.jpg"
  File "${LOCAL_FILES}\data\chair12.3ds"
  File "${LOCAL_FILES}\data\colorspiral.jpg"
  File "${LOCAL_FILES}\data\elegance05.jpg"
  File "${LOCAL_FILES}\data\ff21.jpg"
  File "${LOCAL_FILES}\data\Hypno+Eyes.jpg"
  File "${LOCAL_FILES}\data\hypnospiral.3ds"
  File "${LOCAL_FILES}\data\hypnotic.jpg"
  File "${LOCAL_FILES}\data\pc8.jpg"
  File "${LOCAL_FILES}\data\pc9.jpg"
  File "${LOCAL_FILES}\data\spiral.jpg"
  File "${LOCAL_FILES}\data\spiral2.jpg"
  File "${LOCAL_FILES}\data\yellowwhitespiral.jpg"
SectionEnd

Section "Image files" SEC13
  SetOutPath "$INSTDIR\images"
  File "${LOCAL_FILES}\images\demo.gif"
SectionEnd

Section -AdditionalIcons
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd

Section -Post
  WriteUninstaller "$INSTDIR\uninst.exe"
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\VH.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\VH.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "${PRODUCT_STARTMENU_REGVAL}" "$ICONS_GROUP"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"

  ;associate file types with VHPack
  StrCpy $0 $INSTDIR\VHPack.exe
  WriteRegStr HKCR ".vhpack" "" "VHPack.exe"
  WriteRegStr HKCR "VHPack.exe" "" "Virtual Hypnotist Package"
  WriteRegStr HKCR "VHPack.exe\DefaultIcon" "" '$0,0'
  WriteRegStr HKCR "VHPack.exe\Shell\Open\Command" "" '"$0" "%1"'

  Call RefreshShellIcons
SectionEnd

; Section descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Main application files"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Desktop icons"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Audio files"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Video files"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "Main Hypnosis scripts"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "Recreational scripts"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC07} "Source code"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Animated characters"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC09} "Required system files"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC10} "ColorTunnel 2.0 application"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC11} "Screensaver application"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC12} "3D Data Files"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC13} "Image Files"
!insertmacro MUI_FUNCTION_DESCRIPTION_END

; AddSharedDLL
 ;
 ; Increments a shared DLLs reference count.
 ; Use by passing one item on the stack (the full path of the DLL).
 ;
 ; Usage:
 ;   Push $SYSDIR\myDll.dll
 ;   Call AddSharedDLL
 ;

 Function AddSharedDLL
   Exch $R1
   Push $R0
   ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
   IntOp $R0 $R0 + 1
   WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
   Pop $R0
   Pop $R1
 FunctionEnd

; un.RemoveSharedDLL
 ;
 ; Decrements a shared DLLs reference count, and removes if necessary.
 ; Use by passing one item on the stack (the full path of the DLL).
 ; Note: for use in the main installer (not the uninstaller), rename the
 ; function to RemoveSharedDLL.
 ;
 ; Usage:
 ;   Push $SYSDIR\myDll.dll
 ;   Call un.RemoveSharedDLL
 ;

 Function un.RemoveSharedDLL
   Exch $R1
   Push $R0
   ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
   StrCmp $R0 "" remove
     IntOp $R0 $R0 - 1
     IntCmp $R0 0 rk rk uk
     rk:
       DeleteRegValue HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
     goto Remove
     uk:
       WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
     Goto noremove
   remove:
     Delete /REBOOTOK $R1
   noremove:
   Pop $R0
   Pop $R1
 FunctionEnd

Function un.onUninstSuccess
  HideWindow
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
FunctionEnd

Function un.onInit
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
  Abort
FunctionEnd

Function RefreshShellIcons
  !define SHCNE_ASSOCCHANGED 0x08000000
  !define SHCNF_IDLIST 0
  System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
FunctionEnd

Function un.RefreshShellIcons
  !define SHCNE_ASSOCCHANGED2 0x08000000
  !define SHCNF_IDLIST2 0
  System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (${SHCNE_ASSOCCHANGED2}, ${SHCNF_IDLIST2}, 0, 0)'
FunctionEnd

Section Uninstall
  ReadRegStr $ICONS_GROUP ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "${PRODUCT_STARTMENU_REGVAL}"
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
  Delete "$INSTDIR\uninst.exe"
  ;Push "$SYSDIR\FM20.oca"
  ;Call un.RemoveSharedDLL
  Push "$SYSDIR\FM20.DLL"
  Call un.RemoveSharedDLL
  Push "$SYSDIR\FM20ENU.DLL"
  Call un.RemoveSharedDLL
  Push "$SYSDIR\COMDLG32.OCX"
  Call un.RemoveSharedDLL
  Push "$SYSDIR\MSCOMCTL.OCX"
  Call un.RemoveSharedDLL
  Push "$SYSDIR\MSCOMCT2.OCX"
  Call un.RemoveSharedDLL
  Push "$SYSDIR\RICHTX32.OCX"
  Call un.RemoveSharedDLL
  Push "$SYSDIR\TABCTL32.OCX"
  Call un.RemoveSharedDLL
  Push "$SYSDIR\MSWINSCK.OCX"
  Call un.RemoveSharedDLL
  Push "$SYSDIR\MSSTDFMT.DLL"
  Call un.RemoveSharedDLL
  Delete "$WINDIR\msagent\chars\Agent.acs"
  Delete "$WINDIR\msagent\chars\Woo.acs"
  Delete "$WINDIR\msagent\chars\Vrgirl.acs"
  Delete "$WINDIR\msagent\chars\mouth.acs"
  Delete "$WINDIR\msagent\chars\eye.acs"
  Delete "$WINDIR\msagent\chars\E-woman.acs"
  Delete "$WINDIR\msagent\chars\Angie.acs"
  Delete "$INSTDIR\source\Binaural.frm"
  Delete "$INSTDIR\source\Binaural.frx"
  Delete "$INSTDIR\source\ChangeRes.bas"
  Delete "$INSTDIR\source\Code.bas"
  Delete "$INSTDIR\source\ColorFader.cls"
  Delete "$INSTDIR\source\DialogText.frm"
  Delete "$INSTDIR\source\DialogText.frx"
  Delete "$INSTDIR\source\DialogYesNo.frm"
  Delete "$INSTDIR\source\DialogYesNo.frx"
  Delete "$INSTDIR\Downloader.ocx"
  Delete "$INSTDIR\Downloader.oca"
  Delete "$INSTDIR\source\frmAbout.frm"
  Delete "$INSTDIR\source\frmAbout.frx"
  Delete "$INSTDIR\source\frmMode.frm"
  Delete "$INSTDIR\source\frmMode.frx"
  Delete "$INSTDIR\source\frmPresets.frm"
  Delete "$INSTDIR\source\frmPresets.frx"
  Delete "$INSTDIR\source\frmPreview.frm"
  Delete "$INSTDIR\source\frmPreview.frx"
  Delete "$INSTDIR\source\frmSession.frm"
  Delete "$INSTDIR\source\frmSession.frx"
  Delete "$INSTDIR\source\frmSplash.frm"
  Delete "$INSTDIR\source\frmSplash.frx"
  Delete "$INSTDIR\source\frmSRTest.frm"
  Delete "$INSTDIR\source\frmSRTest.frx"
  Delete "$INSTDIR\source\frmSub.frm"
  Delete "$INSTDIR\source\GRCircle.bas"
  Delete "$INSTDIR\source\Hypno.frm"
  Delete "$INSTDIR\source\Hypno.frx"
  Delete "$INSTDIR\hypno.ico"
  Delete "$INSTDIR\source\LoadDialog.frm"
  Delete "$INSTDIR\source\LoadDialog.frx"
  Delete "$INSTDIR\source\Logbook.frm"
  Delete "$INSTDIR\source\Logbook.frx"
  Delete "$INSTDIR\source\Main.frm"
  Delete "$INSTDIR\source\Main.frx"
  Delete "$INSTDIR\source\Message.frm"
  Delete "$INSTDIR\source\Message.frx"
  Delete "$INSTDIR\source\ScreenCap.frm"
  Delete "$INSTDIR\source\ScreenCapture.bas"
  Delete "$INSTDIR\source\scriptmaker.frm"
  Delete "$INSTDIR\source\scriptmaker.frx"
  Delete "$INSTDIR\source\Spiral.bas"
  Delete "$INSTDIR\source\SubContolPanel.frx"
  Delete "$INSTDIR\VH.vbp"
  Delete "$INSTDIR\VH.vbw"
  Delete "$INSTDIR\source\VisualMaker.frm"
  Delete "$INSTDIR\source\VisualMaker.frx"
  Delete "$INSTDIR\source\frmRemote.frm"
  Delete "$INSTDIR\source\frmRemote.frx"
  Delete "$INSTDIR\source\aimAbout.frm"
  Delete "$INSTDIR\source\aimAbout.frx"
  Delete "$INSTDIR\source\aimAway.frm"
  Delete "$INSTDIR\source\aimAway.frx"
  Delete "$INSTDIR\source\aimBuddyList.frm"
  Delete "$INSTDIR\source\aimBuddyList.frx"
  Delete "$INSTDIR\source\aimChatJoin.frm"
  Delete "$INSTDIR\source\aimChatJoin.frx"
  Delete "$INSTDIR\source\aimChatRoom.frm"
  Delete "$INSTDIR\source\aimChatRoom.frx"
  Delete "$INSTDIR\source\aimConvert.frm"
  Delete "$INSTDIR\source\aimConvert.frx"
  Delete "$INSTDIR\source\aimDebug.frm"
  Delete "$INSTDIR\source\aimDebug.frx"
  Delete "$INSTDIR\source\aimError.frm"
  Delete "$INSTDIR\source\aimError.frx"
  Delete "$INSTDIR\source\aimIM.frm"
  Delete "$INSTDIR\source\aimIM.frx"
  Delete "$INSTDIR\source\aimInfo.frm"
  Delete "$INSTDIR\source\aimInfo.frx"
  Delete "$INSTDIR\source\aimInvitation.frm"
  Delete "$INSTDIR\source\aimInvitation.frx"
  Delete "$INSTDIR\source\aimInvite.frm"
  Delete "$INSTDIR\source\aimInvite.frx"
  Delete "$INSTDIR\source\aimOptions.frm"
  Delete "$INSTDIR\source\aimOptions.frx"
  Delete "$INSTDIR\source\AIMPass.bas"
  Delete "$INSTDIR\source\aimProfile.frm"
  Delete "$INSTDIR\source\aimProfile.frx"
  Delete "$INSTDIR\source\aimSignOn.frm"
  Delete "$INSTDIR\source\aimSignOn.frx"
  Delete "$INSTDIR\source\modAIM.bas"
  Delete "$INSTDIR\source\modInfo.bas"
  Delete "$INSTDIR\source\RegStuff.cls"
  Delete "$INSTDIR\source\rtfform.frm"
  Delete "$INSTDIR\source\rtfform.frx"
  Delete "$INSTDIR\source\suak.bas"
  Delete "$INSTDIR\source\console.frm"
  Delete "$INSTDIR\source\console.frx"
  Delete "$INSTDIR\source\frmViewer.frm"
  Delete "$INSTDIR\source\frmViewer.frx"
  Delete "$INSTDIR\source\TrayIcon.cls"
  Delete "$INSTDIR\source\FileEditor.frm"
  Delete "$INSTDIR\source\FileEditor.frx"
  Delete "$INSTDIR\source\frmFindReplace.frm"
  Delete "$INSTDIR\source\frm3D.frm"
  Delete "$INSTDIR\source\TextForm.frm"
  Delete "$INSTDIR\source\DownloaderAbout.pag"
  Delete "$INSTDIR\source\DownLoad_Properties.pag"
  Delete "$INSTDIR\source\DLMain.ctl"
  Delete "$INSTDIR\source\DLMain.ctx"
  Delete "$INSTDIR\source\Downloader.frm"
  Delete "$INSTDIR\source\Downloader.frx"  
  Delete "$INSTDIR\source\mZip.bas"
  Delete "$INSTDIR\source\cZip.cls"
  Delete "$INSTDIR\source\frmPackage.frm"
  Delete "$INSTDIR\source\frmPackage.frx"
  Delete "$INSTDIR\source\frmRemoteList.frm"
  Delete "$INSTDIR\source\frmRemoteList.frx"
  Delete "$INSTDIR\source\ScriptProcessor.bas"
  Delete "$INSTDIR\source\GDI.bas"
  Delete "$INSTDIR\source\frmCharAnim.frm"
  Delete "$INSTDIR\source\frmCharAnim.frx"
  Delete "$INSTDIR\source\frmPlug.frm"
  Delete "$INSTDIR\source\Bass.bas"
  Delete "$INSTDIR\source\Mod_BASSWA.bas"
  Delete "$INSTDIR\source\ECG.cls"
  Delete "$INSTDIR\source\EncryptXOR.cls"
  Delete "$INSTDIR\source\modEncryption.bas"
  Delete "$INSTDIR\source\ChooseURL.frm"
  Delete "$INSTDIR\source\ChooseURL.frx"
  Delete "$INSTDIR\subliminals\defaultsub.txt"
  Delete "$INSTDIR\wakenings\obey.txt"
  Delete "$INSTDIR\wakenings\forget.txt"
  Delete "$INSTDIR\wakenings\forget-spanish.txt"
  Delete "$INSTDIR\wakenings\defaultwake.txt"
  Delete "$INSTDIR\wakenings\robotwake1-clean.txt"
  Delete "$INSTDIR\wakenings\Awaken and Forget.txt"
  Delete "$INSTDIR\wakenings\Amnesia Reinduction.txt"
  Delete "$INSTDIR\suggestions\TrigRobot-voice.txt"
  Delete "$INSTDIR\suggestions\Hand Drop.txt"
  Delete "$INSTDIR\suggestions\Hand Drop-voice.txt"
  Delete "$INSTDIR\suggestions\hypnoslave.txt"
  Delete "$INSTDIR\suggestions\hypnoslave-snap.txt"
  Delete "$INSTDIR\suggestions\hypnoslave-voice.txt"
  Delete "$INSTDIR\suggestions\mindfrag.txt"
  Delete "$INSTDIR\suggestions\mindfrag-fx.txt"
  Delete "$INSTDIR\suggestions\Number Press 2.txt"
  Delete "$INSTDIR\suggestions\Number Press.txt"
  Delete "$INSTDIR\suggestions\stagehyp1 - arms.txt"
  Delete "$INSTDIR\suggestions\stagehyp2 - coldwarm.txt"
  Delete "$INSTDIR\suggestions\stagehyp3 - age.txt"
  Delete "$INSTDIR\suggestions\stagehyp4 - alphabet.txt"
  Delete "$INSTDIR\suggestions\stagehyp5 - president.txt"
  Delete "$INSTDIR\suggestions\stagehyp6 - gender.txt"
  Delete "$INSTDIR\suggestions\stagehyp-all.txt"
  Delete "$INSTDIR\suggestions\success.txt"
  Delete "$INSTDIR\suggestions\successloop.txt"
  Delete "$INSTDIR\suggestions\TrigFreeze2.txt"
  Delete "$INSTDIR\suggestions\triggersugg.txt"
  Delete "$INSTDIR\suggestions\triggersugg-indirect.txt"
  Delete "$INSTDIR\suggestions\triggersugg-voice.txt"
  Delete "$INSTDIR\suggestions\TrigRobot.txt"
  Delete "$INSTDIR\suggestions\defaultsuggest.txt"
  Delete "$INSTDIR\suggestions\randomtest.txt"
  Delete "$INSTDIR\suggestions\randomtest-spanish.txt"
  Delete "$INSTDIR\suggestions\statue1.txt"
  Delete "$INSTDIR\suggestions\Hand Drop Updated.txt"
  Delete "$INSTDIR\suggestions\Audio Suggestion.txt"
  Delete "$INSTDIR\suggestions\Instant - Check Time.txt"
  Delete "$INSTDIR\suggestions\Instant - Emergency Exit.txt"
  Delete "$INSTDIR\suggestions\Instant - Quick Freeze Test.txt"
  Delete "$INSTDIR\suggestions\Instant - Safety Net.txt"
  Delete "$INSTDIR\suggestions\Suggestion - Forget What You Were Just Doing.txt"
  Delete "$INSTDIR\suggestions\Instant - Data Save And Restore.txt"
  Delete "$INSTDIR\suggestions\Suggestion - Balloon Rising Arm.txt"
  Delete "$INSTDIR\suggestions\Suggestion - One Time Preparation.txt"
  Delete "$INSTDIR\suggestions\Suggestion - Placement Conclusion.txt"
  Delete "$INSTDIR\suggestions\Trigger - One Time Preparation.txt"
  Delete "$INSTDIR\suggestions\Trigger - Placement Conclusion.txt"
  Delete "$INSTDIR\suggestions\bike safety.txt"
  Delete "$INSTDIR\suggestions\reactiontime.txt"
  Delete "$INSTDIR\suggestions\Instant - Strip Now.txt"
  Delete "$INSTDIR\suggestions\Suggestion - Mindless Hypnotized Slave.txt"
  Delete "$INSTDIR\suggestions\Basic Silver-bot.txt"
  Delete "$INSTDIR\suggestions\magicspell.txt"
  Delete "$INSTDIR\suggestions\trustwords.txt"
  Delete "$INSTDIR\deepeners\room of nothingness.txt"
  Delete "$INSTDIR\deepeners\defaultdeep with question.txt"
  Delete "$INSTDIR\deepeners\defaultdeep.txt"
  Delete "$INSTDIR\deepeners\defaultdeep-spanish.txt"
  Delete "$INSTDIR\deepeners\longislanddeepener.txt"
  Delete "$INSTDIR\deepeners\anesthesia.txt"
  Delete "$INSTDIR\deepeners\Deep and Dreamy Ultimate.txt"
  Delete "$INSTDIR\deepeners\Deep and Dreamy.txt"
  Delete "$INSTDIR\deepeners\Deepener - Count Down From Ten.txt"
  Delete "$INSTDIR\deepeners\Deepener - Eye Catalepsy 2 - bottomforuse.txt"
  Delete "$INSTDIR\deepeners\Deepener - Eye Catalepsy 2.txt"
  Delete "$INSTDIR\deepeners\Deepener - Eye Catalepsy Basic.txt"
  Delete "$INSTDIR\deepeners\Deepener - Eye Catalepsy.txt"
  Delete "$INSTDIR\deepeners\Deepener - Eyes Open 2.txt"
  Delete "$INSTDIR\deepeners\Deepener - Eyes Open Enhanced.txt"
  Delete "$INSTDIR\deepeners\Deepener - Positive Trigger Affirmation 1.txt"
  Delete "$INSTDIR\deepeners\Deepener - Query Trigger Status 1.txt"
  Delete "$INSTDIR\deepeners\Train - Succeptible.txt"
  Delete "$INSTDIR\inductions\association method.txt"
  Delete "$INSTDIR\inductions\confusion.txt"
  Delete "$INSTDIR\inductions\defaultinduct.txt"
  Delete "$INSTDIR\inductions\defaultinduct-spanish.txt"
  Delete "$INSTDIR\inductions\DominantInduction.txt"
  Delete "$INSTDIR\inductions\eyeballs up.txt"
  Delete "$INSTDIR\inductions\featuretest.txt"
  Delete "$INSTDIR\inductions\FreezeTest.txt"
  Delete "$INSTDIR\inductions\longinduction.txt"
  Delete "$INSTDIR\inductions\Seven_Plus_or_Minus_Two.txt"
  Delete "$INSTDIR\inductions\SlaveTest.txt"
  Delete "$INSTDIR\inductions\trigger.txt"
  Delete "$INSTDIR\inductions\spiral induction.txt"
  Delete "$INSTDIR\inductions\kaa induction.txt"
  Delete "$INSTDIR\inductions\robotcontrol1.txt"
  Delete "$INSTDIR\inductions\Induction - Spiral Induction.txt"
  Delete "$INSTDIR\inductions\Focuscarefree.txt"
  Delete "$INSTDIR\inductions\jc mindmix.txt"
  Delete "$INSTDIR\inductions\Whole Self Integration.txt"
  Delete "$INSTDIR\inductions\hypnoticeyeDIY.txt"
  Delete "$INSTDIR\inductions\obeye.txt"
  Delete "$INSTDIR\inductions\ownup.txt"
  Delete "$INSTDIR\inductions\breathing and trigger induction.txt"
  Delete "$INSTDIR\inductions\Hive drone with wakener.txt"
  Delete "$INSTDIR\videos\spurt.gif"
  Delete "$INSTDIR\videos\spiral2.swf"
  Delete "$INSTDIR\videos\pendulum1.gif"
  Delete "$INSTDIR\videos\kscope.gif"
  Delete "$INSTDIR\videos\illusion.avi"
  Delete "$INSTDIR\videos\hypnovideo.m1v"
  Delete "$INSTDIR\videos\hypnospiral.m1v"
  Delete "$INSTDIR\videos\coolspiral.m1v"
  Delete "$INSTDIR\videos\colors.m1v"
  Delete "$INSTDIR\videos\watch.gif"
  Delete "$INSTDIR\videos\kaa.avi"
  Delete "$INSTDIR\videos\mandara.swf"
  Delete "$INSTDIR\videos\colorflash.gif"
  Delete "$INSTDIR\audio\8.mp3"
  Delete "$INSTDIR\audio\2.mp3"
  Delete "$INSTDIR\audio\3.mp3"
  Delete "$INSTDIR\audio\5.mp3"
  Delete "$INSTDIR\audio\6.mp3"
  Delete "$INSTDIR\audio\1.mp3"
  Delete "$INSTDIR\audio\hyp.mp3"
  Delete "$INSTDIR\colortunnel\ColorTunnel.exe"
  Delete "$INSTDIR\colortunnel\ColorTunnel.ico"
  Delete "$INSTDIR\colortunnel\ColorTunnel.vbp"
  Delete "$INSTDIR\colortunnel\ColorTunnel.vbw"
  Delete "$INSTDIR\colortunnel\Form1.frm"
  Delete "$INSTDIR\colortunnel\Form1.frx"
  Delete "$INSTDIR\colortunnel\Form2.frm"
  Delete "$INSTDIR\colortunnel\Form2.frx"
  Delete "$INSTDIR\colortunnel\Form3.frm"
  Delete "$INSTDIR\colortunnel\GRCircle.bas"
  Delete "$INSTDIR\screensaver\Code.bas"
  Delete "$INSTDIR\screensaver\Options.frm"
  Delete "$INSTDIR\screensaver\Options.frx"
  Delete "$INSTDIR\screensaver\VH_Screensaver.vbp"
  Delete "$INSTDIR\screensaver\VH_Screensaver.vbw"
  Delete "$INSTDIR\data\bg11.jpg"
  Delete "$INSTDIR\data\bg14.jpg"
  Delete "$INSTDIR\data\bg4l.jpg"
  Delete "$INSTDIR\data\bg54.jpg"
  Delete "$INSTDIR\data\bgc1.jpg"
  Delete "$INSTDIR\data\bluefloor.jpg"
  Delete "$INSTDIR\data\chair12.3ds"
  Delete "$INSTDIR\data\colorspiral.jpg"
  Delete "$INSTDIR\data\elegance05.jpg"
  Delete "$INSTDIR\data\ff21.jpg"
  Delete "$INSTDIR\data\Hypno+Eyes.jpg"
  Delete "$INSTDIR\data\hypnospiral.3ds"
  Delete "$INSTDIR\data\hypnotic.jpg"
  Delete "$INSTDIR\data\pc8.jpg"
  Delete "$INSTDIR\data\pc9.jpg"
  Delete "$INSTDIR\data\spiral.jpg"
  Delete "$INSTDIR\data\spiral2.jpg"
  Delete "$INSTDIR\data\yellowwhitespiral.jpg"
  Delete "$INSTDIR\images\demo.gif"
  Delete "$INSTDIR\package\install-beta.nsi"
  Delete "$INSTDIR\package\install-stable.nsi"
  Delete "$INSTDIR\package\install-upgrade.nsi"
  Delete "$INSTDIR\package\install.bmp"
  Delete "$INSTDIR\sounds\hypno.wma"
  Delete "$INSTDIR\sounds\snap.wav"
  Delete "$INSTDIR\sounds\Snap Very Loud.mp3"
  Delete "$INSTDIR\sounds\Snap Loud w 6 Echos.mp3"
  Delete "$INSTDIR\pink_inv.wav"
  Delete "$INSTDIR\freq2.wav"
  Delete "$INSTDIR\freq1.wav"
  Delete "$INSTDIR\sessions\test.hyp"
  Delete "$INSTDIR\sessions\coolmindfrag.hyp"
  Delete "$INSTDIR\sessions\visualdemo.hyp"
  Delete "$INSTDIR\sessions\visualdemo2.hyp"
  Delete "$INSTDIR\sessions\hypnotic_eye.hyp"
  Delete "$INSTDIR\sessions\kaa.hyp"
  Delete "$INSTDIR\sessions\kaa2.hyp"
  Delete "$INSTDIR\sessions\kaa-background.hyp"
  Delete "$INSTDIR\sessions\wacko.hyp"
  Delete "$INSTDIR\sessions\wacko2.hyp"
  Delete "$INSTDIR\sessions\grockdemo.hyp"
  Delete "$INSTDIR\sessions\oobe_tunnel.hyp"
  Delete "$INSTDIR\sessions\coolmindfrag3b.hyp"
  Delete "$INSTDIR\sessions\eyes2.hyp"
  Delete "$INSTDIR\sessions\grock2.hyp"
  Delete "$INSTDIR\sessions\spiralvisual1.hyp"
  Delete "$INSTDIR\sessions\visualdemo3.hyp"
  Delete "$INSTDIR\sessions\hypnoticeyeDIY.hyp"
  Delete "$INSTDIR\sessions\hypnoticeyeDIY.txt"
  Delete "$INSTDIR\sessions\brainwasheye.hyp"
  Delete "$INSTDIR\sessions\owned.hyp"
  Delete "$INSTDIR\sessions\brainwasheye_and_owned.txt"
  Delete "$INSTDIR\sessions\brainwasheye2.hyp"
  Delete "$INSTDIR\sessions\visualdemo4.hyp"
  Delete "$INSTDIR\wordlists\default.txt"
  Delete "$INSTDIR\wordlists\reinduction.txt"
  Delete "$INSTDIR\logs\6-13-2004.txt"
  Delete "$INSTDIR\vhpack\Form1.frm"
  Delete "$INSTDIR\vhpack\Form1.frx"
  Delete "$INSTDIR\vhpack\VHPack.vbp"
  Delete "$INSTDIR\vhpack\cUnZip.cls"
  Delete "$INSTDIR\vhpack\frmOverwrite.frm"
  Delete "$INSTDIR\vhpack\frmOverwrite.frx"
  Delete "$INSTDIR\vhpack\mUnzip.bas"
  Delete "$INSTDIR\VH.exe"
  Delete "$INSTDIR\VHPack.exe"
  Delete "$INSTDIR\gpl.txt"
  Delete "$INSTDIR\back.bmp"
  Delete "$INSTDIR\readme.rtf"
  Delete "$INSTDIR\scripts.rtf"
  Delete "$INSTDIR\vh.chm"
  Delete "$INSTDIR\versions.txt"
  Delete "$INSTDIR\changelog.txt"
  Delete "$INSTDIR\vbuzip10.dll"
  Delete "$INSTDIR\vbzip11.dll"
  Delete "$INSTDIR\BASS.dll"
  Delete "$INSTDIR\bass_wa.dll"
  Delete "$SYSDIR\Virtual Hypnotist.scr"
  
  Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
  Delete "$DESKTOP\Virtual Hypnotist.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Virtual Hypnotist.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Package Installer.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Release Notes.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\Users Guide.lnk"
  
  ; Remove file association
  DeleteRegKey HKCR ".vhpack"
  DeleteRegKey HKCR "VHPack.exe"
  Call un.RefreshShellIcons

  RMDir "$SMPROGRAMS\$ICONS_GROUP"
  RMDir "$INSTDIR\wakenings"
  RMDir "$INSTDIR\videos"
  RMDir "$INSTDIR\suggestions"
  RMDir "$INSTDIR\subliminals"
  RMDir "$INSTDIR\sessions"
  RMDir "$INSTDIR\logs"
  RMDir "$INSTDIR\inductions"
  RMDir "$INSTDIR\deepeners"
  RMDir "$INSTDIR\audio"
  RMDir "$INSTDIR\source"
  RMDir "$INSTDIR\colortunnel"
  RMDir "$INSTDIR\screensaver"
  RMDir "$INSTDIR\sounds"
  RMDir "$INSTDIR\package"
  RMdir "$INSTDIR\vhpack"
  RMdir "$INSTDIR\images"
  RMdir "$INSTDIR\wordlists"
  RMDir "$INSTDIR"

  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
  SetAutoClose true
SectionEnd
