also @ TechSpot: HDD supply to recover by Q3 2012, prices to remain high
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > Software Apps

Begin your free trial now Pay-as-you-go options starting at $10/user/month

Hard coding an installer

Thread Tools Search this Thread
  #1  
Old 05-03-2008
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.
  #2  
Old 05-03-2008
jobeard's Avatar
TechSpot Ambassador
 
Location: Southern Calif.
Member since: Apr 2005, 10,834 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
  #3  
Old 05-04-2008
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.
Closed Thread

Similar Topics
Topic Replies Forum
Case wire color coding 3 Other Hardware
Different Coding in the "Meeting Spot" Forums 9 Site Feedback and Suggestions
Online Coding (Mainly PHP) 4 Virus and Malware Removal
WD JB80 in foreign coding??? 1 Storage and Networking
HTML - need help with coding... 3 General Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 06:30 PM.