-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstallFinished.ms
65 lines (49 loc) · 2.09 KB
/
InstallFinished.ms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
InstallFinished.ms
Version: 0.2
Created On: February 18, 2003
Created By: Jeff Hanna
Modified On: January 04, 2018
Modified By: Jeff Hanna
Tested using 3ds Max 2016
© Copyright 2003 Lodestone Games, LLC. All Rights Reserved.
Cleans up left over install files and then informs the user that the install is finished.
v0.2 - Added the calling of the two utility libraries and the menu creation script to this script.
In newer versions of Max calling those files from the mzp.run installation control file didn't appear to work.
v0.1 - First version.
*/
(
--LOCAL VARIABLES
-----------------
--MAIN LOOP
-----------
rollout rltFinished "Version Control" width:312 height:112
(
label lblInstallFinished "Installation of the Version Control scripts is complete." pos:[8,8] width:256 height:16
label lblQuery "Would you like to see the readme file or view the changelog?" pos:[8,32] width:296 height:16
checkbox chkReadme "View readme" pos:[8,48] width:88 height:16 checked:true
checkbox chkChangelog "View changelog" pos:[8,64] width:104 height:15
button btnFinishedOK "OK" pos:[240,80] width:64 height:24
on btnFinishedOK pressed do
(
if rltFinished.chkReadme.state == true then
(
shellLaunch "notepad.exe" ((getDir #userscripts) + "\\Lodestone\\VersionControl\\VCChangelog.txt")
)
if rltFinished.chkChangelog.state == true then
(
shellLaunch "notepad.exe" ((getDir #userscripts) + "\\Lodestone\\VersionControl\\VCReadme.txt")
)
deleteFile "$temp\\VCReadme.txt"
deleteFile "$temp\\VCChangelog.txt"
destroyDialog rltFinished
)
)
fileIn ((getDir #userscripts) + "\\Lodestone\\VersionControl\\Libs\\LSUtilLib.ms")
fileIn ((getDir #userscripts) + "\\Lodestone\\VersionControl\\Libs\\VersionControlLib.ms")
setINISetting ((getDir #userscripts) + "\\..\\Plugin.UserSettings.ini") "Directories" "Lodestone plug-ins" ((getDir #userscripts) + "\\Lodestone\\VersionControl\\Libs")
macros.load()
fileIn ((getDir #temp) + "\\VersionControl_Menus.ms")
deleteFile ((getDir #temp) + "\\VersionControl_Menus.ms")
createDialog rltFinished 312 112 modal:true
)