![]() ![]() |
Nov 17 2003, 11:37 AM Post
#1 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
Here it is, finally. Installs.exe is similar in function to Installs.vbs, though right now is has more options than installs.vbs. Another difference is that you can run it at anypoint during an unattended install, at least so far in my experience, from runonce, from cmdlines.txt. Since it does not use IE it does not require a user profile like the VBS did. Formatting of the INI file is the same with a few additional options (save as installs.ini). CODE ;Apps Install INI ;INI file Format ; ; [Applcation name as displayed in program] ; Install= path to application install + switches ; selected=0,1 0 not selected by default, 1 selected by default ; (if not specified defaults to 0) ; visible=1,0 1 visible on form, 0 not visible on form ; (if not specified defaults to 1) ; if not visible but selected application will still install ; active=1,0 1 - Visible and able to change, 0 - greyed out, visible but not able to change ; (if not specified defaults to 1) ; installorder=## order in wich application is installed starting with 1 ; (if no order is selected applications will install in listed order in INSTALL.INI ; any application without an INSTALLORDER will install after applications ; with INSTALLORDER set.) Cannot be larger than number of applications defined in INI. ; register=register.reg,[before/after] (path\name of registry file for registration of application ; will be installed with "regedit /s path\filename") before or after is required ; postreboot=0,1 1 add to runonce and install after reboot, 0 install now (default) ; displayorder=## order in which applications are displayed on screen ; (if no order is selected applications will displayed in listed order in INSTALL.INI ; any application without a DISPLAYORDER will be listed after applications ; with DISPLAYORDER set.) Cannot be larger than number of applications defined in INI. ; saveinstall=0,1 0 delete installation folder after install, deletes contents of folder and ; removes folder containing installer listed in INSTALL. defaults to 1 to leave. ; killprocess=processname,wait Process to kill at end of install, wait in seconds before killing, ; will not work with POSTREBOOT option (in future version) ; popdesc=description of program which mouse rests over, text tip box. ; boxdesc=description of program displayed underneath program name next to checkbox ; ; ; NOTE: application will be listed on screen in the order they are entered into ; the INSTALL.INI file. if displayorder is not set. [INSTALL WINDOW SETUP] Title=Software Installation Selection Prompt=Select Software for Install: Button=Start Installation ; Specifies left side position of window Left=20 ; specifies top position of window Top=20 ;specifies width of window in twips Width=12000 ; specifies height of window if left blank the box will be resized to display all items in twips ;Height=8000 ; number of columns to display program list numcolumns=4 ; restart=1,0 1 Restart after installs, 0 do not restart, defaults to 1 restart=0 ; Autostart=1,0 1 - does not wait for user to click button starts upon loading and waiting for delay (default 0) Autostart=0 ; Delay - length of time in seconds to wait before starting script delay=0 ; shutdowntimer=ss - number of seconds to wait before installs.exe closes after finishing installs or user exits, defaults to 10 shutdowntimer=10 ;cblineht=185 defines how many lines of text high the checkbox field is, usefull when using boxdesc. ; 185=1 line, 370=2, 555=3, etc in multiples of 185 defaults to 555. cblineht=370 [Acrobat Reader 6.0] install=msiexec -i %systemdrive%\install\acrobat\AR6.msi /QB selected=0 visible=1 active=1 displayorder=1 installorder=1 postreboot=0 popdesc=acrobat boxdesc=Adobe product Things I am still working on: 1. processname,wait - Process to kill at end of install, wait in seconds before killing 2. DONE Description - a description line under the program name (already has popup description) 3. Complete Error checking - with better error descriptions 4. Group items - into selectable groups 5. Radio button groups - for single application but with different install options 5a. radio button groups - for different applications, you can install one but not the other, i.e. acrobat 5 or acrobat 6 6. setup switch for cd-rom install 7. fix problem with postreboot switch Let me know if you run into errors and what they were or at what point they occur. I have tested as best I can with the applications I use but that is a far cry from what is out there to test this against. Edit: This one will work as long as numcolumns is greater than or equal to then number of applications to be displayed. I'm working on fixing this issue. Edit: Above issue fixed in this version fixed - Shutdowntimer issue added - command line option for user selected INI file, INI must exist in same directory as EXE. format - installs.exe myinstall.ini added - translation of environment variables used in INI file fixed - active switch, added boxdesc, added cblineht form option fixed - now replaces all environment variables not just the first one incountered fixed - now replaces environment variables in all path strings fixed - not properly detecting register files and installing changed - code which launches applications - seems to handle more applications properly now[/b] Current version 2.3.15 (previous versions available here) Attached File(s) |
| | |
Nov 17 2003, 11:50 AM Post
#2 | |
| * Seeker of Knowledge * ![]() ![]() Group: Members Posts: 275 Joined: 18-October 03 Member No.: 8271 |
Placed it and your installs.ini copied from here in a directory and ran with no mods: "Subscript out of range" |
| | |
Nov 17 2003, 11:58 AM Post
#3 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
do you have a directory at %systemdrive\install\acrobat which contains ar6.msi? Sorry, haven't added error checking yet. |
| | |
Nov 17 2003, 12:06 PM Post
#4 | |
| * Seeker of Knowledge * ![]() ![]() Group: Members Posts: 275 Joined: 18-October 03 Member No.: 8271 |
Ha! OK - no problem. We find errors when the users report them |
| | |
Nov 17 2003, 12:12 PM Post
#5 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
I tested it with the following applications, and tried to test it in as many incorrect combinations of missing files etc as possible. Acrobat Reader 6.0 MDAC 2.8 Microsoft .Net v1.1 Journal Viewer WinRAR 3.20 OpenAFS 1.2.10 CorporateTime 6.03 SpyBot Search & Destroy v1.2 Microsoft Journal Viewer F-Secure SSH 5.2 Build 33 Windows Media PLayer 9 Windows Messenger 5.0 Windows XP Service Pack 1 Pharos Print Drivers X-Win32 for Windows PowerPoint Viewer Reflections Netscape 7.1 Base Netscape 7.1 Full Movie Maker 2.0 Quicktime 6 Macromedia and Shockwave Players WinISO 5.3 ANd had no problems I'm still trying to figure out how techtype got the error, I have not been able to duplicate it yet. Attached File(s) |
| | |
Nov 17 2003, 12:12 PM Post
#6 | |
| Junior ![]() Group: Members Posts: 57 Joined: 19-October 03 Member No.: 8302 | QUOTE (IcemanND @ Nov 17 2003, 06:58 PM) do you have a directory at %systemdrive\install\acrobat which contains ar6.msi? I do now, but still no luck. |
| | |
Nov 17 2003, 12:14 PM Post
#7 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
Does the error come up immediately upon launch?
|
| | |
Nov 17 2003, 12:20 PM Post
#8 | |
| * Seeker of Knowledge * ![]() ![]() Group: Members Posts: 275 Joined: 18-October 03 Member No.: 8271 |
Does this one require DotNet? Edit: Let me be clear that I did not have the Adobe Dir, so I figured that was the problem! Yes, immediately on launch. |
| | |
Nov 17 2003, 12:22 PM Post
#9 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
No, I built it in VB6, not .NET I'm about to try it on a clean machine and see if there is something on my system that it needs that is not on a default install. edit: Found it I forgot to change the displayorder value to 1, displayorder and installorder can not be greater than the number of applications in the list. Sorry |
| | |
Nov 17 2003, 12:29 PM Post
#10 | |
| Junior ![]() Group: Members Posts: 57 Joined: 19-October 03 Member No.: 8302 |
Alas, still reports the error
|
| | |
Nov 17 2003, 12:42 PM Post
#11 | |
| Slave to M$ ![]() ![]() Group: Members Posts: 255 Joined: 21-June 03 From: Dallas, TX Member No.: 4535 |
I know you're still working on it, but will 'processname,wait' be able to kill multiple processes? I ask due to NAV 2004 (man it's a b!@!#!)
|
| | |
Nov 17 2003, 12:49 PM Post
#12 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
Hmm, I have to get it to kill one process first. Then maybe I'll work on multiple kills. But I'll keep it in mind while I'm working on it.
|
| | |
Nov 17 2003, 01:19 PM Post
#13 | |
| Junior ![]() Group: Members Posts: 57 Joined: 19-October 03 Member No.: 8302 |
It seems the problem is in the number of columns. In the unmodded ini it has 4 columns, and only one item. It looks as thought there need to be at least the same number of items as you have columns in the ini (if you know what i mean). So just add more items, then it should work fine. -- And if I might make a feature request: Grouping items into Categories, so that all in the category are selected at once. |
| | |
Nov 17 2003, 01:32 PM Post
#14 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
tinnef: that too. I'm working on fixing it now. Thanks I guess I didn't figure people would have fewer columns than apps and then I post it that way. |
| | |
Nov 17 2003, 02:16 PM Post
#15 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 | Let me know if there are any other issues. tinnef: QUOTE -- And if I might make a feature request: Grouping items into Categories, so that all in the category are selected at once. I like the idea, I'm not sure just how I can implement it yet but I will file it away for future revisions. Thanks for the help and suggestion. |
| | |
Nov 17 2003, 02:17 PM Post
#16 | |
| * Seeker of Knowledge * ![]() ![]() Group: Members Posts: 275 Joined: 18-October 03 Member No.: 8271 |
Works now,thanks!! |
| | |
Nov 17 2003, 02:55 PM Post
#17 | |
| Junior ![]() Group: Members Posts: 57 Joined: 19-October 03 Member No.: 8302 |
This is really nice, works great so far. I found another minor bug, though. The countdowntimer at the end only works correctly when set to 10 seconds. If it is less it will stay on 10, if set to more then 10 it will remain there, and start countdown from 10 on down |
| | |
Nov 17 2003, 03:14 PM Post
#18 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
ok tinnef quit finding bugs! |
| | |
Nov 17 2003, 03:46 PM Post
#19 | |
| Junior ![]() Group: Members Posts: 57 Joined: 19-October 03 Member No.: 8302 | QUOTE (IcemanND @ Nov 17 2003, 10:14 PM) ok tinnef quit finding bugs! He he, I wouldn't find them if they weren't there. Anyways, I haven't found any new ones. Excellent work. |
| | |
Nov 17 2003, 03:52 PM Post
#20 | |
| MSFN Master Group: Super Moderator Posts: 2963 Joined: 24-September 03 From: Indiana Member No.: 7346 OS: Windows 7 x64 |
Let's see what your eyes do at 3am with 500 lines of code. |
| | |
![]() ![]() |
| Lo-Fi Version | Time is now: 20th November 2009 - 11:06 PM |