Sign in to follow this  
Followers 0
Processor

Automate InstallShield Installation

8 posts in this topic

Hi,

My purpose is to automate of a product build with installshield.

If I use timers it works but there is not really any control on the window the scritpt is working on.

that's why I wanted ti use the function winwaitactive to be sure that we are on the right window.

I tested it with notepad and it was ok.

I wrote this:

winactivate ("untitled","")
winwaitactive ("[CLASS:notepad]", "toto")
msgbox (0,"test", "test window")

and the message box appear only if toto is written in notepad.

Now in the installshield process it does not work and I don't know why:

this is the code:

winactivate ( "Server installation", "")
winwaitactive ("[CLASS:edit; INSTANCE:1]","")
send ("toto")

to be sure to check the right window I used AutoIt Windows Info and this is what I got:

>>>> Window <<<<
Title: Server Installation
bla
bla
bla

>>>> Control <<<<
Class: Edit
Instance: 1
bla
bla

So I guess I'm on the right window, any idea why my installshield is not right detected by AutoIt 3?

thx bye advance for yoru help.

Processor.

Share this post


Link to post
Share on other sites



Can't you use command line switches to install the product?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Oups,

I'll check this first and see then if everyhing is ok

Share this post


Link to post
Share on other sites

Being an InstallShield product, even if it is a setup.exe it likely has an MSI packed inside. You should be able to extract the MSI, and this opens up a bevy of command line options.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Hi,

So I used the command line with unattend response file.

I used Autoit to customize the response files as it should unique for each of my pc.

thx for you suggestions.

bye

Share this post


Link to post
Share on other sites

Glad to be of service :D


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#7 ·  Posted

Run Script or IDE (Visual Studio ) in Administrator mode will work.
 

Share this post


Link to post
Share on other sites

#8 ·  Posted

@Raviraj  do you realize this is a 5 year old post, that had already been resolved? Please do not resurrect old threads.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0