Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > OS & Software > Misc. Software & Utilities

Hard coding an installer

Reply
 
Thread Tools
  #1  
Old 05-03-2008, 05:40 PM
yosemsam yosemsam is offline
Newcomer, in training
 
Member since: Sep 2006, 9 posts
Hard coding an installer

is there a way that i can hardcode a password into an executable such that i don't need to type it in myself. I've seen it done before (although not too often) and thus I know it can be done. The reason is that i'm trying to do a silent install of a software but the password blocks me from finishing the installation.

If there is some sort of editor i can use to edit the file myself (I'm not sure of the language used to compile it) or a software that edits dialog boxes manually, i would be very grateful. Another approach would be to provide the password in the command line, which i don't know how to do offhand. i've basically just used the "filename /verysilent" command without the quotes to attempt a silent install.

Thanks
-Sam.
Reply With Quote
  #2  
Old 05-03-2008, 08:04 PM
jobeard's Avatar
jobeard jobeard is offline
TechSpot Evangelist
 
Location: Southern Calif.
Member since: Apr 2005, 6,156 posts
The issue is to avoid prompting for the PW on all except the first invocation.

Common techniques are to write the PW in a scrambled manner (eg encrypted)
into a file at a known location and read it as required and decrypt.

On windows, the registry is the most common location.

It is not uncommon to have the PW embedded in the program and then update it
at install time with another program (the installer) which knows how to
  1. open the file in binard for update inplace
  2. how to find the correct location
  3. and to write the PW
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 05-03-2008, 11:19 PM
yosemsam yosemsam is offline
Newcomer, in training
 
Member since: Sep 2006, 9 posts
i was thinking more along the lines of an autoit script. Once the password has been entered during the install process, the program itself runs smoothly without any reference to a name and password (ie. i don't think there is a registry entry that gets saved since there is only 1 version, the full version)

I don't know how to scrample passwords, i'm not too advanced, i barely know how to use debuggers such as softIce and Olly.

thanks though.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Online Coding (Mainly PHP) Reddo Security and the Web 4 02-16-2008 04:20 PM
Windows Installer harken Windows OS 7 07-11-2007 05:25 PM
Installer Error Rich88 Audio and Video 5 12-28-2005 04:51 PM
WD JB80 in foreign coding??? michael_martin Storage & Networking 1 05-03-2005 04:05 AM
HTML - need help with coding... Spike The Meeting 'spot' 3 03-01-2005 07:40 PM


All times are GMT -4. The time now is 05:49 AM.