#207723 - 2013-09-12 12:58 PM
Re: Using Kixtart to install a program
[Re: Robdutoit]
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
|
If you download any of the apps from my web site, such as Customize or Task Scheduler Administrator, they include a script called KInstall. KInstall (\bin\install.kix) uses an INI file to define the installation process. It supports the ability to copy/update files, delete files, update ini files, update the registry, prompt for input & process the result, handle basic logic decisions, run executables, and more. I have another version of this called SystemBuild that is used to automate system/server builds from a basic image with a high level of customization - automated on-off builds, in a sense. I use this now to automate almost every app installed through our SWDIST product, both internally and at several client sites.
You can view the user guide at my web site or download the entire KInstall package from the Products/Administrators Toolchest section. (KInstall is not open source - you cannot modify the script, only the installation config files.)
Also - if you need to distribute keys in a secure manner, you might want to look at the cipher UDF. It's similar to the Enigma code engine from WWII, but uses up to 32K codewheels to create the cipher. Again, no source to preserve the security, but pre-tokenized UDFs are available for download to integrate into your scripts. Search for Cipher in the UDF library here on KORG for the download link.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
|
Top
|
|
|
|
#207731 - 2013-09-13 03:06 PM
Re: Using Kixtart to install a program
[Re: Robdutoit]
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
|
If you look at the KixDev package on my site, the KGen tool will automatically tokenize your scripts. KGen is a form of Link Editor - you create your script in a .TXT file, referencing any of the UDFs located in a library folder. KGen will index your UDFs, determine which were referenced, and generate a script by combining your .TXT file, any .UDF files from your project folder, and all referenced .UDF files from the library. Based on an optional config file setting or command-line arg, it will tokenize the script. It always leaves a .GEN file in plain text, and creates logs of what UDFs were used and a log of if/case/loop references to help identify missing closure statements.
KGen also invokes the Sanity UDF, which documents variable usage, insures vars are properly declared, paired tokens (if/endif) match, and quotes and parens match. I use KGen for every script, no matter how small, just to find these minor issues.
Glenn
PS - KixDev is free for download and is provided in Kix/Bat source. It includes a copy of our UDF library and full documentation.
_________________________
Actually I am a Rocket Scientist!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|