• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

Autoinsert CD key

Hi,

I have several programs that I need to make backups of and my question is this:

How do I write an ini file (I think) that will auto insert the  program key (A Known key) into the program so that when I install the program the key will automatically be inserted in the text boxes provided that request the key?

Any help Very Much Appreciated!

Regards

Mark
0
m_durnell
Asked:
m_durnell
3 Solutions
 
cj_1969Commented:
Depends on the application, not all apps support this.
Most MS applications do.
If this is available for the applications you have there should be a section in the installation instructions/documentation on creating a scripted or unattended installation.  This should tell you how to create the file that is needed and how to set up a batch file, or something similar, to execute the install program and access the file contents (could be automatic if the name of the file is defaulted ... a little cludgy/dangerous ... you wouldn't be able to run the install WITHOUT it if they do this and you then try to run it from a CD)
0
 
1_UPCommented:
I would suggest a macro...AutoHotKeys is a good scripting language for these types of scripts...
You will need to modify the autorun.ini or the autorun.bat to include the  'KEY' script to run before installation...
It can then sit and wait for a window(WinWait command) with a matching title bar to appear, and when it does it can insert the text into a given box or boxes and then click on continue for you...it will require a little finnagling to get it just right, as macros depend on the use of mouse coordinates, etc. to perform click/text insert functions.
However it is a pretty easy language to learn(took me a day or two), and quite useful...

http://www.autohotkey.com

Hope this helps...

1_UP
0
 
AndreDekoltaCommented:
Am I missing something here?  How about using an unattended install using an answer file?
0
 
1_UPCommented:
Andre,

That would work too...offer a more in depth instruction for cj_1969, then he can choose which way to go...

1_UP
0
 
scrathcyboyCommented:
"an unattended install using an answer file"

that only works for windows, it does not work for most other applications.  

The long and short is that there is NO universal way to do this for all applications.
It totally depends on the APP as to what you can and cannot do, and by the time you research all apps....
Well, it is simpler and quicker just to type in the needed data, unless you have 100+ installs to do...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now