Display message when running the program the first time
Hi guys,
Thanks a lot for the support you guys give. I have got lot of help from this site and I count it to be the best of all.
Coming to my problem. I have to display a message to the end user when running the first time that they need to contact the vendor that they dont have the license. Is there a way that we can do it. I am using Wise package studio 7.0 to package.
Thank you guys very much in advance.
Sid
Answers (5)
Can use AutoIt to make an executable and run it at the end. Or use a bootstrapper where you have a coloumn where you can have a custom message displayed at the end of the install.
What software?
Comments:
-
Axe. Which i have tried to install it in an environment and they said that the license are cannot be floated. So i have to display a message as soon as they get the software installed. - Sidhugadu 12 years ago
-
I've used AutoIT for things like this before. The MsgBox command is what I use. This will create an exe that will display whatever message you need. I would then do as Chris suggested and use a runonce and call that exe.
http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm
Download:
http://www.autoitscript.com/site/autoit/
Sample:
$answer = MsgBox(0, "Axe Install", "Please contact vendor for license.")
If $answer = 1 Then
Exit
EndIf
You can even get creative and when they click ok it will launch the vendor URL. - dugullett 12 years ago
-
Also do the same thing with one line of vbs...
msgbox ("Please Contact vendor for license")
Obviously some use AutoIT due to environment restrictions, advanced needs, and that is what they are used to (among others).
I personally have only "needed" to use it once in 10 years packaging and deploying software. But as I said, environments and needs are different everywhere you go. - dandirk 12 years ago
Maybe just have your package add something to the RunOnce registry key (HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce) so that next time they log on after the package has been installed they get a message and then Windows will remove the entry automatically so they don't see it again next time they log in. I think that would be a lot easier than trying to get the message to appear the first time they launched the application itself, but I might be wrong.
Comments:
-
I will try in giving it a shot. Thanks Chris. - Sidhugadu 12 years ago
First question is what type of envronment? Shared or single user computers?
If shared you almost have to build for the possibility that any user that logs into a computer needs to be taken into account.
If single user, Chris' suggestion would work ok.
Second question... Is the installer an msi (or are your packaging it into one?), and are you familiar with msi modification?
If using msi installer, there are a number of options for launching a dialog either at install, app launch or login/boot depending what your needs are.
You could also script the short-cut to launch the app so it runs a check for license, if not found dialog appear... If found modify shortcut then launch app... Pretty messy but do-able.