Tyler Hepworth <[EMAIL PROTECTED]> writes: > How do I automatically feed the Office Key into the pidkey variable? > I know that it is called as part of with-env.pl and you had said > that you call it from sales.bat, but I don't call office from one of > the master bat files. I have it set as an optional install. How > would I set it when it is being called optionally?
You have discovered a dirty little secret, which is that I do not test exactly the same files that I ship. (They are very very close, but this is one of the differences.) When I originally wrote officexp.bat, I was using it to install retail copies of Office XP. So I needed a way to look up the product key for each machine being installed. That ultimately led to with-env.pl, which is actually a pretty bad hack. Eventually, my company shelled out for a volume license for Office, so I stopped using with-env.pl where I work and just edited officexp.bat locally to incorporate our volume license key. I still ship the version which expects %pidkey% to be set, though. When we invented the notion of "OPTIONAL" scripts, the whole with-env.pl model (which was a mistake to begin with) broke. I think we need to flush it. But then we need a way for the batch script to invoke another program which outputs the product key, and to put that value into an environment variable. This is possible in batch programming, but extremely messy: http://lf.8k.com/BAT/FVAR.HTM And it does not even allow for proper error checking... Let me think about this some more. Meanwhile, I suggest looking into volume licenses :-). - Pat ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
