/build/static/layout/Breadcrumb_cap_w.png

the BEST time...

Hi....[:D]

Need your advise how to do this to the best way...
i made a package in wise to install a program. before the install package start installing the program the workstation DNS entries must be ok. so i made a batch file to check the DNs entries. where should i place the batch file in my package. any suggestion ....

Thanks.[8|]

0 Comments   [ + ] Show comments

Answers (10)

Posted by: Netrock 13 years ago
Orange Senior Belt
0
.... I was thinking to do it at:
User interface >>> Dialogs level.

any suggestions??
Posted by: Rheuvel 13 years ago
Brown Belt
0
Actually I would place it in the InstallExecuteSequence, which makes sure the check is also done when the MSI is running silent. And do it after InstallInitialize.
Posted by: Netrock 13 years ago
Orange Senior Belt
0
Thanks for your reply....

I will try that..

Have a Nice day!
Posted by: Netrock 13 years ago
Orange Senior Belt
0
I placed in installation Sequence,thank you for the hint, configure the space bar with the message to make sure my script runs...but how can i configure it to have pop up to infrom the user of the DNS entery is ok or not so if it is not ok installation stops.

any ideas appreciated.
Posted by: Netrock 13 years ago
Orange Senior Belt
0
i did follow the steps below:

To execute a .BAT file in a Windows Installer installation, you will have to use a custom action. Do the following:
In the .WSI file, select View > MSI Script..
In the Installation Sequence list, click the location in the sequence where you want to place the custom action.
Double-click the Execute Program from Path custom action on the Custom tab. The Execute Program from Path dialog displays.
Populate the Details tab as follows:
Name: Enter a name for the custom action.
Property: Enter %COMSPEC. This is the environment variable that holds the location of the cmd.exe program.
Command Line: Enter "/c <path to .BAT>\<batchfile.BAT>" (replacing the text in <> with the path and name of your batch file. Enclose the path and batch file name in double quotes. The /c switch closes the cmd.exe window after the batch file executes. To execute the batch file and keep the cmd.exe window open, enter /k instead. (This can be useful for debugging batch files.)
Click OK.

but in the Batch file i have two messages, if the DNS entry for that workstation is not good, first it is resolving the hostname 2nd) resolving the IP

how can i show the errors in wise package as a pop windows.

same as if there is not enough disk space will inform the user.

Thank you for your help.[:)]
Posted by: anonymous_9363 13 years ago
Red Belt
0
The User Interface sequence is the best place for communicating with the user. Keep your Execute sequence CA for silent installs, making sure that instead of presenting to the user, you write to the Windows Installer log. Here's a code fragment for that: Set objMSIRecord = Session.Installer.CreateRecord(0)
objMSIRecord.StringData(0) = "[Your log text goes here - best passed in via a variable, of course]"
Session.Message msiMessageTypeError, objMSIRecord
Set objMSIRecord = Nothing
Posted by: Netrock 13 years ago
Orange Senior Belt
0
Thanks VBScab for your post.

Originally, i choose Sequence: Normal Execute immediate/Deferred but according to your post i should
choose "Normal User Interface", where should i place my action after "SetPatchMode". please note i am not that Pro with
packaging thank you in advance for your patient..... but i know you are very good.

The code fragment you posted kindly, where should i place it . i know in the MSI Script tab when i select Normal Installation Mode i could see the codes, so that's the place i have to
place the posted codes. please advise.

Have a Nice day!
Posted by: anonymous_9363 13 years ago
Red Belt
0
As I intimated, you should have 2 CAs: one in the UI sequence and the other in the EI sequence, the latter to cater for silent installs.

The code fragment is just that: a fragment. You would use it along with other code, not the least of which would include declaring the variables used, etc.

I'm afraid the forum is the wrong place for a tutorial. I have proper work to do and simply don't have the time to walk you through how to do what's necessary.
Posted by: Netrock 13 years ago
Orange Senior Belt
0
Hi VBScab,

Thank you for your kind post.
All i need to see the light, then i find the way to get it. YOU have done this before and that let me to learn many things......

Thank you for your time.

Have a Nice Weekend.
Posted by: Netrock 13 years ago
Orange Senior Belt
0
Hi All,

After using Custom Action in MSI Script to run my batch file, how i can create a pop up so the user can see the result of the batch file, so can press " Next" or "Cancel", during installation of the package.

Thank you in advance.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ