Dialogs in the InstallExecuteSequance
Here is a question for you all.
Is it possible to have dialogs appear during the installexecutesequance, the reason I am asking is that I wanted to display dialog boxes to users who are receiving my package. The problem is that they are going to receive it via an msiexec /jm switch so they wont see a UI sequence just the Execute.
Even if this means changing the way advertising works!
Paul
Is it possible to have dialogs appear during the installexecutesequance, the reason I am asking is that I wanted to display dialog boxes to users who are receiving my package. The problem is that they are going to receive it via an msiexec /jm switch so they wont see a UI sequence just the Execute.
Even if this means changing the way advertising works!
Paul
0 Comments
[ + ] Show comments
Answers (21)
Please log in to answer
Posted by:
nheim
16 years ago
Posted by:
Inabus
16 years ago
Yeh, I already have a vbscript running with the correct buttons and sending the correct termination and success codes back to windows installer BUT I cant use screenshots in these dialogs so was after something a bit more flashy.
Just to clarify:
Our deployment tool, Radia, doesnt like MSI exit codes and just gives a generic 709 error during installation if a user is manually cancelling the installation. Obviously this is naff and not what we want SO we decided to do an advertised shortcut, which means that Radia is happy as it has deployed the package. When the user wants to then install the device driver that click on the shortcut and I wanted them to follow prompts on the screen. Now it looks like this isnt possible unless I use a custom action, bit annoying considering I have nice dialogs to walk the user through installing the driver!
Paul
Just to clarify:
Our deployment tool, Radia, doesnt like MSI exit codes and just gives a generic 709 error during installation if a user is manually cancelling the installation. Obviously this is naff and not what we want SO we decided to do an advertised shortcut, which means that Radia is happy as it has deployed the package. When the user wants to then install the device driver that click on the shortcut and I wanted them to follow prompts on the screen. Now it looks like this isnt possible unless I use a custom action, bit annoying considering I have nice dialogs to walk the user through installing the driver!
Paul
Posted by:
AngelD
16 years ago
Posted by:
Inabus
16 years ago
Posted by:
AngelD
16 years ago
True but as you stated "The problem is that they are going to receive it via an msiexec /jm switch so they wont see a UI sequence just the Execute" I though you wanted to display some message when the package was (distributed) advertised which in that case uses the AdvtExecuteSequence table when install the entrypoint.
Posted by:
Inabus
16 years ago
Nope, I wanted the /jm bit done as normal but when they actually RUN the shortcut, the shortcut detects my product isnt installed and will then kick of the installation with something like "do you want to install this driver", "are you sure you have it plugged in and this device switched on", stuff like that :)
What I need to ensure is that the shortcut runs under the Radia context as normal users will be installing this device driver not adminsitrators.
The reason I was using dialogs is that I have found no way of getting screenshots into a msgbox in vbscript.
Paul
What I need to ensure is that the shortcut runs under the Radia context as normal users will be installing this device driver not adminsitrators.
The reason I was using dialogs is that I have found no way of getting screenshots into a msgbox in vbscript.
Paul
Posted by:
AngelD
16 years ago
Posted by:
Inabus
16 years ago
Posted by:
nheim
16 years ago
Hi folks,
@Kim: IMHO, the 'AdvtExecuteSequence' sequence does nothing more than generate the advertising script (.aas).
@Paul: Everything has its price :-) You can of course use other languages to create a Custom Action for this purpose.
Maybe, you can hack togheter something with an AutoIt script and compile an exe from it?
Regards, Nick
@Kim: IMHO, the 'AdvtExecuteSequence' sequence does nothing more than generate the advertising script (.aas).
@Paul: Everything has its price :-) You can of course use other languages to create a Custom Action for this purpose.
Maybe, you can hack togheter something with an AutoIt script and compile an exe from it?
Regards, Nick
Posted by:
AngelD
16 years ago
Nick,
The .aas file is related to AD/GPO and not windows installer advertising.
Looking up regarding the AdvtExecuteSequence table and the ADVERTISE action it does seem to execute the actions with the /j switch is used meaning when the ADVERTISE action is executed.
AdvtExecuteSequence table
http://msdn2.microsoft.com/en-us/library/aa367551.aspx
ADVERTISE action
http://msdn2.microsoft.com/en-us/library/aa367549.aspx
Kim
The .aas file is related to AD/GPO and not windows installer advertising.
Looking up regarding the AdvtExecuteSequence table and the ADVERTISE action it does seem to execute the actions with the /j switch is used meaning when the ADVERTISE action is executed.
AdvtExecuteSequence table
http://msdn2.microsoft.com/en-us/library/aa367551.aspx
ADVERTISE action
http://msdn2.microsoft.com/en-us/library/aa367549.aspx
Kim
Posted by:
Inabus
16 years ago
Posted by:
nheim
16 years ago
Hi Kim,
you're right about the aas file. This is just one special usage of the advertising table.
But the sequences from 'AdvtExecuteSequence' can't be used for bringing a dialog to the user. This table is acutally called when the real advertising is happening. And this is an adminstration task, therefore no "end user" will be logged on to see something of it.
Regards, Nick
you're right about the aas file. This is just one special usage of the advertising table.
But the sequences from 'AdvtExecuteSequence' can't be used for bringing a dialog to the user. This table is acutally called when the real advertising is happening. And this is an adminstration task, therefore no "end user" will be logged on to see something of it.
Regards, Nick
Posted by:
AngelD
16 years ago
I agree with you Nick!
Paul,
screenshots into a msgbox in vbscript
Depending on your environment you maybe could use something like .HTA to customize your "dialog" interface.
Have no real solution for you but if this is going to deployed to your internal environment I wouldn't bother with this. Just make sure the driver can be installed if the device is plugged in or not and install it. If they want to use the HW device the drivers will be required anyway right?
Paul,
screenshots into a msgbox in vbscript
Depending on your environment you maybe could use something like .HTA to customize your "dialog" interface.
Have no real solution for you but if this is going to deployed to your internal environment I wouldn't bother with this. Just make sure the driver can be installed if the device is plugged in or not and install it. If they want to use the HW device the drivers will be required anyway right?
Posted by:
Inabus
16 years ago
Unfortunatly the way the driver has been made it requires administrator rights to install. If you dont have the device plugged in when you install the driver via Radia the driver will attempt to install as a user and this then prompt for the required credentials to install the device.
If the device is plugged in "during" the installation via Radia then it works fine as it is detected by the install and all drivers loaded under the system account.
Paul
If the device is plugged in "during" the installation via Radia then it works fine as it is detected by the install and all drivers loaded under the system account.
Paul
Posted by:
anonymous_9363
16 years ago
The reason I was using dialogs is that I have found no way of getting screenshots into a msgbox in vbscript.I like the easy ones....use IE as your 'message box' host. You can build the HTML dynamically in your script or, better, there are a few VBS class files knocking about, to save you the trouble. Try this http://cwashington.netreach.net/depo/view.asp?Index=953
Posted by:
AngelD
16 years ago
Posted by:
Inabus
16 years ago
The driver appears to be doing 2 things, the first is pre-caching into the system and the other is installing once the pre-cache is complete.
Using either the merge module or the exe I get the same result, that is if I have the device plugged in during installation it will happily install both parts, the pre-cache and install, however if the device us NOT plugged in then all I get is the pre-cache happening and not the install which means the install happens as a user and requires administrator priviliages
Paul
Using either the merge module or the exe I get the same result, that is if I have the device plugged in during installation it will happily install both parts, the pre-cache and install, however if the device us NOT plugged in then all I get is the pre-cache happening and not the install which means the install happens as a user and requires administrator priviliages
Paul
Posted by:
AngelD
16 years ago
Posted by:
Inabus
16 years ago
Posted by:
AngelD
16 years ago
Unsigned driver sounds like the problem.
The bellow thread should provide you with the information to sign it.
http://itninja.com/question/how-do-you-roll-out-new-machines?0873&mpage=1
The bellow thread should provide you with the information to sign it.
http://itninja.com/question/how-do-you-roll-out-new-machines?0873&mpage=1
Posted by:
Inabus
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.