Advertisement

05.08.2008 at 07:45AM PDT, ID: 23386248
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Unzipping an autounzip.exe to numerous workstations at once

Tags: Windows, XP & sbs2003, all Service Packs
This is a little complicated.  We have a program that runs off of a SQL database.  about once a month we have to upgrade the database, and in turn, we must update each workstation.  The way the company has us doing it right now, is running 4 .exe autounzips.  So, I basically have to put those four files on a shared drive, and go machine to machine, select each of those files, and then choose the path to unzip it to.

I think there has to be an easier way to do this than what I am currently doing.  Is there any possible way to make this work? I will attach one of the files I have to unzip so there is no confusion as to what I am working with.  The other three are the exact same file format.

500 points. Thanks!
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: laustandphound
Solution Provided By: matrixnz
Participating Experts: 1
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
05.09.2008 at 03:27AM PDT, ID: 21531495

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 03:30AM PDT, ID: 21531508

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 05:15AM PDT, ID: 21531968

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 06:17AM PDT, ID: 21532438

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 07:14AM PDT, ID: 21533014

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 07:35AM PDT, ID: 21533225

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 08:03AM PDT, ID: 21533560

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 08:32AM PDT, ID: 21533917

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 08:50AM PDT, ID: 21534088

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:04AM PDT, ID: 21534234

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:43AM PDT, ID: 21534576

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 11:08AM PDT, ID: 21535211

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 05:17PM PDT, ID: 21537301

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.12.2008 at 06:04AM PDT, ID: 21546544

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.12.2008 at 06:45AM PDT, ID: 21546904

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 04:57AM PDT, ID: 21554086

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 05:32AM PDT, ID: 21554332

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 05:45AM PDT, ID: 21554438

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 06:09AM PDT, ID: 21554639

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 06:11AM PDT, ID: 21554663

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 06:19AM PDT, ID: 21554736

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 06:41AM PDT, ID: 21554923

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.14.2008 at 02:20AM PDT, ID: 21562293

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.09.2008 at 03:27AM PDT, ID: 21531495
Hi Laustandphound

You could use a scheduled task to do this, for e.g. run once a month, or you could use a script.

If you download and Install AutoIT - http://www.autoitscript.com/autoit3/downloads.shtml, also recommend downloading AutoIt Script Editor, found on the same page.
 - AutoIt is a freeware Windows automation language.

Once downloaded, open Scite (AutoIt Script Editor) and copy and paste the code below.  Save the file as SQLUpdate.au3 or whatever name you prefer.
Change parts of the script which are relavant to you, for example the Server Path, Application Path etc..
Once completed simply right click the SQLUpdate.au3 and select compile, this will create an executable SQLUpdate.exe, now all you need to do is copy this file to each machine, this can be scripted as well and have it added to HKLM\Software\Microsoft\Windows\CurrentVersion\Run so everytime the computer starts it will check the Server Version against the Local Version if the Versions are the same then it will just exit, if the Server is higher than it will execute the autozip files.

Hope that helps, if you need help with scripting the installation feel free to ask.

Cheers
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:
#NoTrayIcon
 
$SVR_SRCPATH = @ScriptDir ;Path to Server Updates + Server Ini File; example: '\\Server\Share' Note: No following '\'
$APP_DSTPATH = @ScriptDir ;Path to Local Updates + Local Ini File; example: @ProgramFiles & '\Application folder' Note: No following '\'
 
$SVR_INIFILE = $SVR_SRCPATH & '\SVRUPDATE.INI' ;Path and name of Server Version Ini File
$APP_INIFILE = $APP_DSTPATH & '\APPUPDATE.INI' ;Path and name of Local Version Ini File
 
$RUN_ZPFILE1 = $SVR_SRCPATH & '\SVRUPDAT1.EXE /Q' ;Command 1 for expanding your Zip Files, this is just an example.
$RUN_ZPFILE2 = $SVR_SRCPATH & '\SVRUPDTE2.EXE /Q' ;Command 2 for expanding your Zip Files, this is just an example.
$RUN_ZPFILE2 = $SVR_SRCPATH & '\SVRUPDTE3.EXE /Q' ;Command 3 for expanding your Zip Files, this is just an example.
$RUN_ZPFILE2 = $SVR_SRCPATH & '\SVRUPDTE4.EXE /Q' ;Command 4 for expanding your Zip Files, this is just an example.
 
$SVR_INIEXST = FileExists($SVR_INIFILE) ;Checks to see if the Server Version Ini Exists or is available for verification.
If Not $SVR_INIEXST Then
	Exit ;If the Server Version Ini isn't available i.e. the user is Offline or the Network is down, exit the script.
EndIf
 
$APP_INIEXST = FileExists($APP_INIFILE) ;Checks to see if the Local Version Ini Exists or is available for verification.
If Not $APP_INIEXST Then
	IniWrite($APP_INIFILE, 'Version', 'Version', '') ;If the Local Version Ini isn't available i.e. the script hasn't run previously, the Ini File is created with no Version information.
EndIf
 
$SVR_VERSION = IniRead($SVR_INIFILE, 'Version', 'Version', 'Error') ;Reads the Server Version Ini File for Version information.
$APP_VERSION = IniRead($APP_INIFILE, 'Version', 'Version', 'Error') ;Reads the Local Version Ini File for Version information.
 
If $SVR_VERSION > $APP_VERSION Then ;If the Server Version is higher than the Local Version then...
	RunWait($RUN_ZPFILE1, $SVR_SRCPATH, @SW_HIDE) ;Run the first command (see $RUN_ZPFILE1 above)
	RunWait($RUN_ZPFILE2, $SVR_SRCPATH, @SW_HIDE) ;Run the second command (see $RUN_ZPFILE2 above)
	RunWait($RUN_ZPFILE3, $SVR_SRCPATH, @SW_HIDE) ;Run the third command (see $RUN_ZPFILE3 above)
	RunWait($RUN_ZPFILE4, $SVR_SRCPATH, @SW_HIDE) ;Run the forth command (see $RUN_ZPFILE4 above)
	IniWrite($APP_INIFILE, 'Version', 'Version', $SVR_VERSION) ;Writes the Server Version into the Local Version Ini
EndIf
Open in New Window
Accepted Solution
 
05.09.2008 at 03:30AM PDT, ID: 21531508
Also forgot, you'll need to create a Server Ini for this to work, in the example above I used SVRUPDATE.INI this can be placed in the same directory as the autozip executables.

Just need the following two lines included in the ini
[Version]
Version = 1.0

When an update is released, update the executables and change the Version number to 2.0 or 1.1 etc..

Cheers
 
05.09.2008 at 05:15AM PDT, ID: 21531968
And, did you say I would have to copy the auto-unzip to each machine? or would I just be able to somehow tie this in to activeDirectory?
 
05.09.2008 at 06:17AM PDT, ID: 21532438
And I'm sorry, When I create the ini file, do I put that on each machine, or is that going to  be able to go on the server?  
 
05.09.2008 at 07:14AM PDT, ID: 21533014
Hi there

Basically the script above is like the Java Update, except we just use the Servers Shared folder rather than a web address,
So here's a scenario

The Script above once compiled to an .exe will be saved to a folder on the users machine for example
C:\Program Files\SQLUpdater
A reference to the file is placed within HKLM\Software\Microsoft\Windows\CurrentVersion\Run\ with a value of SQLUpdater pointing to C:\Program Files\SQLUpdater\SQLUpdate.exe

Every time a user logs in, the program will run, it will look for the \\Server\Share\SQLUpdate.ini file, if it exists it will then do a version comparison, of the Server against the Computer ini held in C:\Program Files\SQLUpdater\ if the version is the same it quits, if the Server is higher, or the Computers version is lower inside the ini file it will then run your four autounzip.exe files.

I'll write you a small program if you like that you can install this on each pc, we could even put an icon under Start | All Programs if you like, it will also be added to Add/Remove Programs so that if you need to uninstall you can do so.

Write back soon.

Cheers
 
05.09.2008 at 07:35AM PDT, ID: 21533225
That program would be awesome.

Also, When you say this," A reference to the file is placed within HKLM\Software\Microsoft\Windows\CurrentVersion\Run\ with a value of SQLUpdater pointing to C:\Program Files\SQLUpdater\SQLUpdate.exe"

Do you mean changing registry?  

I guess I put intermediate, but looking at this, I may be dropping down to beginner.  

As thorough steps as possible would be wonderful!

I suppose both on the server side, and local machine sides.  

I don't know how I could give you more points for this, but I want to. :-)
 
05.09.2008 at 08:03AM PDT, ID: 21533560
Just a couple of things

What are the names of the four autounzip.exe files?
Do they require switches appended or can they just be run directly without any prompting?
Do the users have Administrator Rights on the Computer?  If not I'll need to setup permissions on the C:\Program Files\SQLUpdater directory
Do the users have Rights to the SQL Directories where the autounzip.exe files unzip to?

I've already finished the setup.exe for the workstations, but need to touch up the first script above to ensure that the files have updated correctly before changing the local ini version information.

Cheers
 
05.09.2008 at 08:32AM PDT, ID: 21533917
The names change with each update, but I can rename them if that would be necessary.  

To give you an idea, The most recent update we've done, the files were (I think they are EXE.. I attached one as an example earlier in this thread)

Crystal_11.5.687.007.exe
Help_11.5.687.007.exe
Prophet21_11.5.687.007.exe
MDF_11.5.687.007.exe

I don't think they need switches except, when you double click on any of these it asks you the path where you want it unzipped to. Below are the local paths they would have to go to.

Crystal_11.5.687.007.exe - C:\Program Files\Activant\Prophet 21 11.0\Reports
Help_11.5.687.007.exe - C:\Program Files\Activant\Prophet 21 11.0
Prophet21_11.5.687.007.exe - C:\Program Files\Activant\Prophet 21 11.0
MDF_11.5.687.007.exe - C:\jfsrvr\forms

Could you allow access to those paths in this?
Do I need to setup a shared folder on my server to store the originating autounzip.exe files, for this to work?

Please provide me with any information I need, and ask me anything you need to know.  
 
05.09.2008 at 08:50AM PDT, ID: 21534088
Not sure why but the exe didn't get included, I don't thing EE accepts exe as attachments.

Can you tell me what program was used to zip these files, because hopefully there are switches I can use to unpack them silently.

"Could you allow access to those paths in this?"
Yep, but an administrator would initially need to install the programs so that the permissions can be given to these folders.

"Do I need to setup a shared folder on my server to store the originating autounzip.exe files, for this to work?"
Yes, basically rather than use version numbers on the zip files we would use the SVRUpdate.ini file held in the same folder as the autounzip.exe files.

So on the Server you would have

\\Server\Share\SQLUpdates for example, you will then have the following files in this directory.
Crystal.exe
Help.exe
Prophet.exe
MDF.exe
SQLUpdate.ini

The SQLUpdate.ini we would have
[Version]
Version = 11.5.687.007

Note that I used the version number of the file inside the ini file.

Cheers
 
05.09.2008 at 09:04AM PDT, ID: 21534234
Ok. I'm going to try to attach another file for you to look at. I may rename the extension... I actually zipped it last time so it would work.  

Would I change the ini everytime I ran an update. (That isn't a problem, just trying to understand)

The program used to unzip the files is "Winzip self-extractor"

It won't let me attach the file... even after I zip it.  Eitherway, it is opened with winzip self-extractor. Is there a way for me to email you one of the files?  
 
05.09.2008 at 09:43AM PDT, ID: 21534576
"Would I change the ini everytime I ran an update. (That isn't a problem, just trying to understand)"
That's correct, so for the next update, you'd rename your files to:
Crystal.exe
Help.exe
Prophet.exe
MDF.exe

Change the Version of SQLUpdate.ini on the Server to whatever the new Version is.

Can you try something with one of your autounzip.exe files just as a test, can you run:
Crystal_11.5.687.007.exe /Auto "C:\Program Files\Activant\Prophet 21 11.0\Reports"

Can you tell me if it extracts silently?

You could try and send it to my email, matrixnz at 321.co.nz but it may or maynot work.

Cheers
 
05.09.2008 at 11:08AM PDT, ID: 21535211
Yeah, I tried to email you... did you get it?
 
05.09.2008 at 05:17PM PDT, ID: 21537301
No unfortunately, did you try the switch, I've finised both scripts, but just really need to know if the silent switches work or not so that I can write the command in.  Is it possible to use something like 7zip or just compress the file with zip then use commandline to extract?

Cheers
 
05.12.2008 at 06:04AM PDT, ID: 21546544
Sorry,

Yes, I just ran that test and it worked!  (I changed the file location) but the principles are still the same.  What else do you need from me sir?
 
05.12.2008 at 06:45AM PDT, ID: 21546904
oh. by the way, you can try emailing me at laustandphound at gmail dot com

Let me know if you need anything.
 
05.13.2008 at 04:57AM PDT, ID: 21554086
Alright I'm back, sorry for the delay

Here are the instructions:
Download and install AutoITv3 and AutoIT Script Editor found here http://www.autoitscript.com/autoit3/downloads.shtml (if you haven't already done so)
Download and install Innosetup QuickStart Pack found here http://www.jrsoftware.org/isdl.php#qsp
Download and Extract SQLUpdate.zip (attached) to C:\Scripts (for example)

Experts exchange wouldn't allow my extensions to upload so I renamed the all with a .txt extension, so please:
Rename C:\Scripts\AutoSQLUpdate.au3.txt to AutoSQLUpdate.au3
Rename C:\Scripts\SQLUpdate.au3.txt to SQLUpdate.au3
Rename C:\Scripts\SQLUpdate.ico.txt to SQLUpdate.ico
Rename C:\Scripts\SVRUPDATE.INI.txt to SVRUPDATE.INI
Rename C:\Scripts\Setup.iss.txt

Now for the setup:
Copy C:\Scripts\SVRUPDATE.INI to \\Your Server\Share\SQLUpdate\ Folder
Note: \\Your Server\Share\SQLUpdate\ should contain your autounzip.exe files and they should be named:
   Crystal.exe
   Help.exe
   Prophet.exe
   MDF.exe
If you want to change these names you'll need to update the "$SVR_ZPFILEx" variables within the SQLUpdate.au3 and AutoSQLUpdate.au3 scripts

Now for the script changes:
Open Scite found in: .>Start > All Programs > AutoIT v3 > Scite > Scite
Open the two files SQLUpdate.au3 and AutoSQLUpdate.au3
In SQLUpdate.au3 and AutoSQLUpdate.au3 you should only need to change the following line:

$SVR_SRCPATH = @ScriptDir ;Path to Server Updates; example: '\\Server\Share' Note: No following '\'

You will need to change it to something like:
$SVR_SRCPATH = '\\Your Server\Share\SQLUpdate'

Once completed and within Scite click Tools > Build or press F7 on your keyboard, the files should now compile to executables within the same folder as the Scripts, you should see SQLUpdate.exe and AutoSQLUpdate.exe

Open ISTool found in .> Start > All Programs > Inno Setup 5 > ISTool > ISTool
Open Setup.iss
You can change any of the following variables
#define PKGNAME "SQL Update Wizard";
#define PKGVERS "1.0"
#define PKGFOLD "SQL Update Wizard";
#define PKGCOMP "My Company Name"

PKGNAME is the name of the application.
PKGVERS is the version of the application.
PKGFOLD is the folder of the application i.e. default is C:\Program Files\SQL Update Wizard
PKGCOMP is the name of your company

Once completed click Project > Compile Setup or Press Ctrl + F9 on your keyboard, the file should now compile to an executable within the same folder as the Scripts, you should see Setup.exe.  This file contains the two files SQLUpdate.exe and AutoSQLUpdate.exe.

That's it your done.

Now all you need to do is test and install on a computer.  Note: To run Setup.exe you must be a member of the local administrators group.  The Setup.exe will install SQLUpdate.exe and AutoSQLUpdate.exe to C:\Program Files\SQL Update Wizard\ it will also set the permission authenticated users, modify rights on the following folders:
C:\Program Files\SQL Update Wizard\
C:\Program Files\Activant\Prophet 21 11.0\Reports
C:\Program Files\Activant\Prophet 21 11.0
C:\jfsrvr\forms
That way users can update themselves in future without any permissions.

A registry key is also created in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, the name of the Value is SQL Update Wizard and it runs the AutoSQLUpdate.exe everytime the user logs in.

A shortcut to SQLUpdate is added to the users Start Menu this is a Gui based version of the AutoSQLUpdate.exe this allows users to update manually if they need to.

If you need to remove the files, you can do this directly from Add/Remove Programs like any other program, it will only remove the files that we've installed nothing else.

If you wish to run the setup.exe silently you can do so by using the /verysilent switch if you wish to run it with a progress bar then you could just use /silent for example Setup.exe /Silent

Anyhow hope that helps and I haven't confused you.

Cheers
 
SQL Update Wizard Scripts
 
 
05.13.2008 at 05:32AM PDT, ID: 21554332
Really quick question... all of these downloads go on the server?  I assume so, but want to make sure.  Also, Can I put them in D:/program files instead of C:/program files?>
 
05.13.2008 at 05:45AM PDT, ID: 21554438
Actually all the downloads can be local, so just install them on your machine, as I mentioned the only thing that needs to be up on the server is in the same folder.
   SVRUPDATE.INI
   Crystal.exe
   Help.exe
   Prophet.exe
   MDF.exe

Do all your machines use D:\Program Files by default? either way, the script is actually setup to read from the registry where Program Files is so if the machine was setup to have D:\Program Files than by default it will install there.  It uses the same variable as %ProgramFiles%

Cheers
 
05.13.2008 at 06:09AM PDT, ID: 21554639
HRM... Got this error when working in Scite trying to save it...

C:\scripts\AutoSQLUpdate.au3(15,52) : ERROR: syntax error
$SVR_SRCPATH = @ScriptDir '\\192.168.1.4\SQLUpdate'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
 
05.13.2008 at 06:11AM PDT, ID: 21554663
Ignore that. I found it.

@ScriptDir '\\192.168.1.4\SQLUpdate'  Needs to be @ScriptDir &  '\\192.168.1.4\SQLUpdate'
 
05.13.2008 at 06:19AM PDT, ID: 21554736
I have everything saved and ready to go.  I want to use my machine as the test machine... What would the procedure be to get this on to the machines? Do I need to only run Setup.exe to install?  What happens after that? IT will autoupdate comparing to \\servername\shared\squupdate\   ?? Just want to make sure before I go about this.

Thanks.

Laustandphound
 
05.13.2008 at 06:41AM PDT, ID: 21554923
lol I ran the setup.exe, and then tried to run SQLUpdate program, and I got an error, saying to "Please connect to the network before trying again"

I am connected to the network, is there a change I can make?
 
05.14.2008 at 02:20AM PDT, ID: 21562293
Hi Laustandphound

Sorry was away today, glad you got it all sorted, did you get the correct Server Variable because it should of been

$SVR_SRCPATH = '\\192.168.1.4\SQLUpdate'

not

$SVR_SRCPATH = @ScriptDir '\\192.168.1.4\SQLUpdate'

Cheers
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628