Jump to content

Recommended Posts

Posted (edited)
is this tool write the full INF file

or merg the four file in one inf

This tool just creates the necessary sections to add to your inf file. It will also create the cab file for those files.

I am working on an update for my Firefox Addon Maker that uses an hta as the gui. As soon as completed with it, I will start on this and add some features. To include creating the inf for you.

Edited by Jonnyboy
Posted (edited)
jonnyboy Please Convert this tool to Full Addon Maker

well if i wasn't mistaken

making a full addon maker using a batch command

is almost impossible try to use

[Tool] True-AddOn Maker v1.0 Beta2

Edited by DaRk MaDnEsS
  • 3 weeks later...
  • 2 weeks later...
Posted

hi Jonney boy

i tried it

it made the inf in one sec <<< to fast and that is great

here is the feed back it seems it creates it with uninstall commands and all stuff

in

[KillProcess]

TASKKILL /F /IM %win_comp%.exe

TSKILL %win_comp%

%win_comp% is set to the exe file but when i used the string i named it to the program name

so i suggest you make a different string for the exe file

second

the destination dir

you need to make it asks for the program dir i guess

that all what i think it needs in this build

i checked it and found no other problems seems to be in

Posted (edited)
[KillProcess]

TASKKILL /F /IM %win_comp%.exe

TSKILL %win_comp%

%win_comp% is set to the exe file but when i used the string i named it to the program name

no problem, i can change that.

the destination dir

you need to make it asks for the program dir i guess

The program asks for you to add a folder or a file to include in the addon, not program dir or destination dir. They will be placed exactly where there were found. In the future, I may be able to change the destination folder.

This is so you can add multiple folder and\or files. There is no limit to the number of folders or files that can be added. You do not need to add subfolders, they will be included.

For example, the program is installed in %programfiles%, but also creates a user settings folder in %appdata% and adds a file to system32. Just add the 2 folders and then the file and the inf is created. Then, edit the String Variables. Then, create addon and your done.

Thanks for the feedback

Edited by Jonnyboy
  • 2 weeks later...
Posted

I am adding DIRID's for 16422, 16410, 16412, 16419, 10 and 11. The script will be able to parse the path and substitute the DIRID's properly.

If there are other DIRID's that you would like added, please let me know. If I can add them , I will.

Posted

yeah it a great job

but i remember i found a bug

>< but i forget to say about it

as i remember it was when i active copy files

it does all the work and make the work and make the addon

but i found that it names the files wrong

as in the inf the extension of the files are *.tem

and in the cab they have the extension *.tmp

plz fix this one

and sorry for late report

Posted (edited)
yeah it a great job

but i remember i found a bug

>< but i forget to say about it

as i remember it was when i active copy files

it does all the work and make the work and make the addon

but i found that it names the files wrong

as in the inf the extension of the files are *.tem

and in the cab they have the extension *.tmp

plz fix this one

and sorry for late report

found and fixed - as soon as i get Vista support working, I will post the update.

Thanks

***EDIT***

I need a little help with using vbscript and InternetExplorer.Application. If you can assist me, I would appreciate it. This is the only way to browse to a file in Vista and XP. There are other ways, but it requires you registering a dll prior to running the script and I do not want to do that.

***EDIT***

Well, for now I will register the dll and then unregister the dll. Unless, I can find a better way of doing it.

Edited by Jonnyboy
Posted
found and fixed - as soon as i get Vista support working, I will post the update.

Thanks

***EDIT***

I need a little help with using vbscript and InternetExplorer.Application. If you can assist me, I would appreciate it. This is the only way to browse to a file in Vista and XP. There are other ways, but it requires you registering a dll prior to running the script and I do not want to do that.

***EDIT***

Well, for now I will register the dll and then unregister the dll. Unless, I can find a better way of doing it.

well i don't understand what are you taking about

but just tell me what can i do

:sweatingbullets:

if i can do it i will

and thx for your great effort

Posted

thanks Jonnyboy for update do you can continu via vbscript (previous version) no gui

Posted

version 0.22 posted

Changelog

12-2-08 - v0.22

-fixed bug where AddReg=prog.addreg and [Prog.AddReg] would not display if not adding registry entries

Posted
thanks Jonnyboy for update do you can continu via vbscript (previous version) no gui

I'm sorry but to be able to create the addon, it is not possible to create using batch files. If it is a language issue, I am willing to add your language to the script.

Posted
version 0.22 posted

Changelog

12-2-08 - v0.22

-fixed bug where AddReg=prog.addreg and [Prog.AddReg] would not display if not adding registry entries

D/L link pointed to version 0.21.....

I fixed it for ya... Points to 0.22 now...

Hope ya don't mind.....

Excellent work as always.... :thumbsup_anim:

Posted (edited)
D/L link pointed to version 0.21.....

I fixed it for ya... Points to 0.22 now...

Hope ya don't mind.....

Excellent work as always.... :thumbsup_anim:

thanks

Edited by Jonnyboy
Posted (edited)

Jonnyboy excellent work I have some questions I have been playing around with this and have it some what working I am trying to make a addon for my Restorator 2007 and have it working but it is not creating the menu in Start/All Programs/Restorator 2007 I was able to create a shortcut to the program in Start/All Programs/Administrator Tools and the second problem I am having is that when I uninstall the program thru Add/Remove it deletes the short cut but not the program and directory at C:\program files\Restorator 2007

Thanks for any help you can provide.

dolivas

; Created with Jonnyboy's Inf Assistant

[Version]
Signature="$Windows NT$"

[Optional Components]
Restorator

[Restorator]
OptionDesc="%win_comp%"
Tip="%win_comp% v%disp_vers% %addo_made%"
Modes=0,1,2,3
Copyfiles=prog.10001,prog.10002,prog.10003,prog.10004,prog.10005,prog.10006,prog
.10007,prog.10008,prog.10009,prog.10010,prog.10011,prog.10012,prog.10013,prog.10
0
14,prog.10015,prog.10016,prog.10017
AddReg=prog.addreg
ProfileItems=ProfileItems Name.AddShortcut

[DefaultInstall]
Copyfiles=@%inf_file%,prog.10001,prog.10002,prog.10003,prog.10004,prog.10005,prog.10006,prog.10007,pr
og.10008,prog.10009,prog.10010,prog.10011,prog.10012,prog.10013,prog.10014,prog.
1
0015,prog.10016,prog.10017
ProfileItems=ProfileItems Name.AddShortcut
AddReg=prog.addreg

[DefaultUnInstall]
BeginPrompt=UninstallPrompt
EndPrompt=UninstallSuccess
RunPreSetupCommands=KillProcess:1
RunPostSetupCommands=DelFolders
DelFiles=prog.infs
DelDirs=prog.deldirs
DelReg=prog.delreg
UpdateInis=prog.sysoc
Cleanup=1
ProfileItems=ProfileItems Name.DelShortcut

[SourceDisksNames]
1="%win_comp% Files","%win_comp%.cab",,"i386"

[DestinationDirs]
prog.10001=16422,"%prog_dir%"
prog.10002=16422,"%prog_dir%\help"
prog.10003=16422,"%prog_dir%\help\images"
prog.10004=16422,"%prog_dir%\help\tutorials"
prog.10005=16422,"%prog_dir%\help\tutorials\about"
prog.10006=16422,"%prog_dir%\help\tutorials\delphi"
prog.10007=16422,"%prog_dir%\help\tutorials\dlgedit"
prog.10008=16422,"%prog_dir%\help\tutorials\exp"
prog.10009=16422,"%prog_dir%\help\tutorials\extrall"
prog.10010=16422,"%prog_dir%\help\tutorials\find"
prog.10011=16422,"%prog_dir%\help\tutorials\grab"
prog.10012=16422,"%prog_dir%\help\tutorials\interface"
prog.10013=16422,"%prog_dir%\help\tutorials\rp"
prog.10014=16422,"%prog_dir%\help\tutorials\tool"
prog.10015=16422,"%prog_dir%\help\tutorials\trans"
prog.10016=16422,"%prog_dir%\help\tutorials\transmulti"
prog.10017=16422,"%prog_dir%\UPX"

prog.infs=17
DefaultDestDir=17

[SourceDisksFiles]
10001.tem=1
10002.tem=1
10003.tem=1
10004.tem=1
10005.tem=1
10006.tem=1
10007.tem=1
10008.tem=1
10009.tem=1
10010.tem=1
10011.tem=1
10012.tem=1
10013.tem=1
10014.tem=1
10015.tem=1
10016.tem=1
10017.tem=1
10018.tem=1
10019.tem=1
10020.tem=1
10021.tem=1
10022.tem=1
10023.tem=1
10024.tem=1
10025.tem=1
10026.tem=1
10027.tem=1
10028.tem=1
10029.tem=1
10030.tem=1
10031.tem=1
10032.tem=1
10033.tem=1
10034.tem=1
10035.tem=1
10036.tem=1
10037.tem=1
10038.tem=1
10039.tem=1
10040.tem=1
10041.tem=1
10042.tem=1
10043.tem=1
10044.tem=1
10045.tem=1
10046.tem=1
10047.tem=1
10048.tem=1
10049.tem=1
10050.tem=1
10051.tem=1
10052.tem=1
10053.tem=1
10054.tem=1
10055.tem=1
10056.tem=1
10057.tem=1
10058.tem=1
10059.tem=1
10060.tem=1
10061.tem=1
10062.tem=1
10063.tem=1
10064.tem=1
10065.tem=1
10066.tem=1
10067.tem=1
10068.tem=1
10069.tem=1
10070.tem=1
10071.tem=1
10072.tem=1
10073.tem=1
10074.tem=1
10075.tem=1
10076.tem=1
10077.tem=1
10078.tem=1
10079.tem=1
10080.tem=1
10081.tem=1
10082.tem=1
10083.tem=1
10084.tem=1
10085.tem=1
10086.tem=1
10087.tem=1
10088.tem=1
10089.tem=1
10090.tem=1
10091.tem=1
10092.tem=1
10093.tem=1
10094.tem=1
10095.tem=1
10096.tem=1
10097.tem=1
10098.tem=1
10099.tem=1
10100.tem=1
10101.tem=1
10102.tem=1
10103.tem=1
10104.tem=1
10105.tem=1
10106.tem=1
10107.tem=1
10108.tem=1
10109.tem=1
10110.tem=1
10111.tem=1
10112.tem=1
10113.tem=1
10114.tem=1
10115.tem=1
10116.tem=1
10117.tem=1
10118.tem=1
10119.tem=1
10120.tem=1
10121.tem=1
10122.tem=1
10123.tem=1

[prog.10001]
Check for Updates.url,10001.tem
Discussion Forums.url,10002.tem
features.html,10003.tem
license.txt,10004.tem
order_form.html,10005.tem
purchase.html,10006.tem
Restorator.exe,10007.tem
Restorator.url,10008.tem
styles.css,10009.tem
unins000.dat,10010.tem
unins000.exe,10011.tem
UninsHs.exe,10012.tem
webicon.ico,10013.tem

[prog.10002]
FAQ.html,10014.tem
help.html,10015.tem
links.html,10016.tem
support.html,10017.tem
tech.html,10018.tem
tutorials.html,10019.tem
version_history.html,10020.tem

[prog.10003]
add_resource.png,10021.tem
cm_file.png,10022.tem
cm_folder.png,10023.tem
cm_res.png,10024.tem
find_in_files.png,10025.tem
forcefile.png,10026.tem
image004.jpg,10027.tem
part_view_default.png,10028.tem
part_view_hex.png,10029.tem
part_view_rc.png,10030.tem
settings.png,10031.tem
xp_manifest.png,10032.tem

[prog.10004]
interface.html,10033.tem
terms.html,10034.tem
TutAbout.html,10035.tem
TutDelphi.html,10036.tem
TutExplor.html,10037.tem
TutExtrAll.html,10038.tem
TutGrab.html,10039.tem
TutPatch.html,10040.tem
TutSearch.html,10041.tem
TutTrans.html,10042.tem
TutTransMulti.html,10043.tem
UIRecreator.html,10044.tem
whatis.html,10045.tem

[prog.10005]
131.png,10046.tem
about_mod.png,10047.tem
arrow.png,10048.tem
assign.png,10049.tem
dragopen.png,10050.tem
extract.png,10051.tem
snake.jpg,10052.tem
splash.png,10053.tem

[prog.10006]
rstsplash.gif,10054.tem
rsttxt.gif,10055.tem
TSplashForm1_Image1_Picture_Data.bmp,10056.tem

[prog.10007]
dlgedit1.png,10057.tem
dlgedit2.png,10058.tem
dlgedit3.png,10059.tem

[prog.10008]
expacc.png,10060.tem
expdlg.png,10061.tem
expicon.png,10062.tem
expimage.png,10063.tem
expimages.png,10064.tem
expmenu.png,10065.tem
expopen.png,10066.tem
expopendlg.gif,10067.tem
expstring.png,10068.tem
version_edit.png,10069.tem

[prog.10009]
shassign.gif,10070.tem
sherror.gif,10071.tem
shnewdirs.gif,10072.tem
shopen.gif,10073.tem

[prog.10010]
findbrowse.gif,10074.tem
finddlg.gif,10075.tem
findfound.gif,10076.tem

[prog.10011]
grab_resources.png,10077.tem

[prog.10012]
file_browser.png,10078.tem
overview.png,10079.tem

[prog.10013]
respatcher.png,10080.tem
rpbluearrow.png,10081.tem
rpstep1.png,10082.tem
rpstep2.png,10083.tem
rpstep3.png,10084.tem
rpstep4.png,10085.tem
rpwelcome.png,10086.tem

[prog.10014]
toolclose.gif,10087.tem
tooldirup.gif,10088.tem
tooledit.gif,10089.tem
toolfind.gif,10090.tem
toolhex.gif,10091.tem
toolnewdir.gif,10092.tem
toolopen.gif,10093.tem
toolRC.gif,10094.tem
toolresource.gif,10095.tem
toolrun.gif,10096.tem
toolsave.gif,10097.tem

[prog.10015]
mspacc.gif,10098.tem
mspchanged.gif,10099.tem
mspdlgedit.gif,10100.tem
mspedit.gif,10101.tem
mspmenu1.gif,10102.tem
mspmenu2.gif,10103.tem
mspmenupreview.gif,10104.tem
mspstring.gif,10105.tem

[prog.10016]
edit_locale.png,10106.tem
ml_copy.gif,10107.tem
ml_paste.gif,10108.tem
ml_result.gif,10109.tem
ml_save.gif,10110.tem
ml_save2.gif,10111.tem

[prog.10017]
BUGS,10112.tem
COPYING,10113.tem
LICENSE,10114.tem
NEWS,10115.tem
README,10116.tem
README.1ST,10117.tem
THANKS,10118.tem
TODO,10119.tem
upx.1,10120.tem
upx.doc,10121.tem
upx.exe,10122.tem
upx.html,10123.tem

[Prog.Infs]
%win_comp%.pnf,,,1

[ProfileItems Name.AddShortcut]
Name =%win_comp%,8,47
CmdLine =16422,%prog_dir%,%prog_exe%
WorkingDir =16422,%prog_dir%

[ProfileItems Name.DelShortcut]
Name =%win_comp%,0x0000000A,47

[UninstallPrompt]
Title=%unin_prom%
Prompt=%unin_conf% %win_comp% %disp_vers%?
ButtonType=YESNO

[UninstallSuccess]
Prompt=%win_comp% %unin_done%

[KillProcess]
TASKKILL /F /IM %prog_exe%.exe
TSKILL %prog_exe%

[sysoc.Edit]
%17%\sysoc.inf,Components,%win_comp%=*

[Prog.AddReg]
HKLM,"SOFTWARE\Classes\.res",,0x0,"BomeRst.res"
HKLM,"SOFTWARE\Classes\.res\PersistentHandler",,0x0,"{098f2470-bae0-11cd-b579-08002b30bfeb}"
HKLM,"SOFTWARE\Classes\.sfx",,0x0,"BomeRst.sfx"
HKCR,".res",,0x0,"BomeRst.res"
HKCR,".res\PersistentHandler",,0x0,"{098f2470-bae0-11cd-b579-08002b30bfeb}"
HKCR,".sfx",,0x0,"BomeRst.sfx"
HKCU,"Software\Bomers\Restorator\Restorator\Main","ShowSplash",0x0,"0"
HKCU,"Software\Bomers\Restorator\Registration","Name",0x0,"Administrator"
HKCU,"Software\Bomers\Restorator\Registration","Password",0x0,"et4v4k74j8Zt44T9XYR++gTxJtgyGo4qwAjkYki-X3viXqVOvEuDirOs9wbTEaQDJX6PAkgbJX0LFmcYc4efcDl64b4X4cnFs0wFST2xw9oMgXKaPjLsrP4S
3fWNyHDvLrPJrCZkIANw33f5Cfod8ItQptZI5yfGMD9ykcnx5Vw"
HKCU,"Software\Bomers\Restorator\Registration","Type",0x0,"Regular"
HKLM,"%unin_path%\%win_comp%","DisplayName",,"%win_comp% v%disp_vers% (Remove Only)"
HKLM,"%unin_path%\%win_comp%","DisplayVersion",,"v%disp_vers%"
HKLM,"%unin_path%\%win_comp%","Publisher",,"%addo_made%"
HKLM,"%unin_path%\%win_comp%","HelpLink",,"%addo_help%"
HKLM,"%unin_path%\%win_comp%","URLInfoAbout",,"%addo_info%"
HKLM,"%unin_path%\%win_comp%","InstallLocation",0,"%24%\%prog_dir%"
HKLM,"%unin_path%\%win_comp%","UninstallString",,"rundll32.exe advpack.dll,LaunchINFSection %inf_file%,DefaultUninstall"

[Prog.DelReg]
HKLM,"SOFTWARE\Classes\.res",,0x0,"BomeRst.res"
HKLM,"SOFTWARE\Classes\.res\PersistentHandler",,0x0,"{098f2470-bae0-11cd-b579-08002b30bfeb}"
HKLM,"SOFTWARE\Classes\.sfx",,0x0,"BomeRst.sfx"
HKCR,".res",,0x0,"BomeRst.res"
HKCR,".res\PersistentHandler",,0x0,"{098f2470-bae0-11cd-b579-08002b30bfeb}"
HKCR,".sfx",,0x0,"BomeRst.sfx"
HKCU,"Software\Bomers\Restorator\Restorator\Main","ShowSplash",0x0,"0"
HKCU,"Software\Bomers\Restorator\Registration","Name",0x0,"Administrator"
HKCU,"Software\Bomers\Restorator\Registration","Password",0x0,"et4v4k74j8Zt44T9XYR++gTxJtgyGo4qwAjkYki-X3viXqVOvEuDirOs9wbTEaQDJX6PAkgbJX0LFmcYc4efcDl64b4X4cnFs0wFST2xw9oMgXKaPjLsrP4S
3fWNyHDvLrPJrCZkIANw33f5Cfod8ItQptZI5yfGMD9ykcnx5Vw"
HKCU,"Software\Bomers\Restorator\Registration","Type",0x0,"Regular"
HKLM,"%unin_arpc%\%win_comp%"
HKLM,"%unin_path%\%win_comp%"

[Strings]
win_comp="Restorator"
prog_exe="Restorator.exe"
prog_dir="Restorator 2007"
disp_vers="1709"
addo_made="Addon created by Jonnyboy's Inf Assistant"
addo_help=""
addo_info=""
unin_prom="Jonnyboy's Prog_Name Addon Uninstaller"
unin_conf="Do you really want to remove"
unin_done="has been successfully removed from your computer"
unin_path="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
unin_arpc="SOFTWARE\Microsoft\Windows\CurrentVersion\App Management\ARPCache"
inf_file="Restorator.inf"

Edited by MrNxDmX
Added codebox...
Posted (edited)
Jonnyboy excellent work I have some questions I have been playing around with this and have it some what working I am trying to make a addon for my Restorator 2007 and have it working but it is not creating the menu in Start/All Programs/Restorator 2007 I was able to create a shortcut to the program in Start/All Programs/Administrator Tools and the second problem I am having is that when I uninstall the program thru Add/Remove it deletes the short cut but not the program and directory at C:\program files\Restorator 2007

Thanks for any help you can provide.

dolivas

Ok, first this "%win_comp%,8,47" will create a shortcut in "%AllUsersProfile%\Start Menu\Programs\Administrative Tools", if you want "Start/All Programs/Restorator 2007" your profileitems would look like

[ProfileItems Name.AddShortcut]
Name =%win_comp%,8,23
CmdLine =16422,%prog_dir%,%prog_exe%
WorkingDir =16422,%prog_dir%
SubDir=%prog_dir%

Second, I forget to add the code back in for deldirs and Delfiles. It will be in the update that I post today or tomorrow.

Thanks for the heads up.

Edited by Jonnyboy
Posted
Hi Jonnyboy.

Thanx for the exellent work.

It's a great script and VERY useful.

Thank you
I have a favor to ask: can you make a tutorial how to write hta scripts?
That would be harder than it sounds.

First, an hta is a combination of html and either vbscript or javascript. So, you have to know how to use one of those scripting languages and html.

Second, if you have followed the progress of the INF Assistant and the Firefox Addon Maker, you can see that I am still learning both vbscript and html.

Third, I still need to write tutorials for both of the afore mentioned hta's.

Fourth, I haven't completed the afore mentioned hta's. There are still more features being added to both.

Aside from these, I thank you and maybe at a later date, I can try to write a tutorial on hta's.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...