Jump to content

TRSyntax

Members
  • Joined

  • Last visited

Everything posted by TRSyntax

  1. is there any easy way to have the installer keep the original uninstall display names for all entries added to control panels programs and features directory?
  2. i'm not sure what you are writing in, but in software like visual studio express and code::blocks where you have alot of project options, you can just add a resource file. then and add an icon resource.you can add only one icon or you can also add a icon group. usually containing 4 icons in the sizes; 16x16, 24x24, 32x32 and 48x48. you CAN add more where the highest resoulution would be 96x96. i think... i have tried adding .rc files with mingw and tcc as well but havn't really had any success. im sure it's possible if thats what you're using. here is a tutorial on how to do it in visual studio:
  3. just run the file as is. if the three lines are in the host file they will be removed, and if they are not, they will be added. how to add the more peculiar total uninstall part of your request i'm sure you can figure out yourself. @echo offset "string=www.facebook.com"set "host=C:\Windows\System32\drivers\etc\hosts"for /f "delims=" %%h in ('type "%host%" ^| find /c /i "%string%"') do ( set "result=%%h" >nul )if "%result%"=="0" ( >>%host% echo 127.0.0.1 www.facebook.com >>%host% echo 127.0.0.1 http://www.facebook.com/ >>%host% echo 127.0.0.1 https://www.facebook.com/ set "msg=%string% successfully added to host file )if "%result%" geq "1" ( for /f "tokens=*" %%a in ('findstr /in ".*" "%host%"') do ( echo %%a>>"%tmp%\l_1.x" ) for /f "eol=# tokens=1,2 delims=:" %%a in ('findstr /i ".*%string%.*" "%tmp%\l_1.x"') do ( set stringlines=%%a ) setlocal enabledelayedexpansion set /a "beforelines=stringlines-3" set /a "afterlines=stringlines+1" for /f "eol=# tokens=2* delims=:" %%a in ('findstr /in ".*" "%tmp%\l_1.x"') do ( if %%a leq !beforelines! echo %%b>>"%tmp%\l_2.x" if %%a geq !afterlines! echo %%b>>"%tmp%\l_2.x" ) endlocal move /y "%tmp%\l_2.x" %host% >nul del /q /f %tmp%\*.x set "msg=%string% successfully removed from host file )call ipconfig /flushdns >nulecho.echo %msg%timeout 2 /nobreak >nul | exitlimitations: the script does not handle empty newlines (carriage returns). they would be typed as the ECHO status in the new host file. all lines you want it to remove must be in sequence or all lines between the first and last occurrence of the SET "string" value will be removed. i'm sure there is others limitations, just be careful if you edit the script. test it on some random text file or so..
  4. TRSyntax posted a file in Various
    • 2,445 downloads
    • Version 1.2.0
    i posted a little batch code a while back on this thread. it was meant to step by step do as the tutorial instructed, nothing more. but as time went by and i created more and more installers i frequently found myself in need of a little extra in terms of options and possibilities. so i threw together a little more complicated batch code to take advantage of some free software to help with the job. some of what it offers: - installation or portable setup - x64 & x86 builds - manages it's own path in system PATH - two convenient entires in the extended context menu - default settings in ini file - config.txt templates in sections of ini file - predefined environment variables for config.txt templates - customized sfx modules and possibility to add as many as you'd like - upx compression of sfx modules before executable creation - 3 ways of selecting a RunProgram / ExecuteFile / AutoInstall > by passing it as a parameter to batch > by using templates and calling them with switches > by a switch that tells the batch to look for a config.txt in the target folder - either way the text in query will always be auto encoded to utf-8 - can run verbose, or silent / hidden - can create all exe binaries from all jobs to one selected folder - can create a .md5 file along with the binary - but most importantly, i.m.o; the !compile.cmd batch and configuring it to hold all your other commands, 3d-party tools, compilers etc to work in pre/post sequence of making the sfx binary. if you get used to it compiling your software and creating a simple installer is done in a jiffy suggestions, are most welcome! you can read the help file here all files + my compressed project can be found here
  5. TRSyntax replied to NIM's post in a topic in Hardware Field
    if you buy directly from logitechs stor a couple of times and get the vip pass you get up to 75% off any product when sending in your old products. to be correct they FIRST give you the discount then you get some return papers with your new cheap logicrap products. it's twice now i havn't sent them the used hid hardware and they havn't said a word :\ but i use 3-4 mouses and keybords a year.. (anger issues in front of computer) as to recomandations.. ALL my logitech mouses have had that same problem. the last one was the logitech anywhere mx mouse. now stationed at my desk where i hope some time will change it's mind i really like that mouse. now i've fallen back on one of my two logitech preformance mx mouses. that was my former favorite and it's the only one that keeps up (not going click crazy) i don't know about you but my logitech mouses have this thing where they loose the 'hook' of my clicks.. say i drag a window and it just desides to let go of it. if mark text or files it looses the original start point and starts off somwhere else. REALLY ANNOYING!! all of those mouses are soundly placed inside my wall across the room.. anyway that issue is setpoint related. i don't have the link for the ticket on logitech's support sites but you can search your way there.. i love and hate logitech, but i.m.o all the competition is either lacking in features or not ergonomic enough.. choosing the right mouse is like choosing the righ car.. you don't know you did the wrong choice before it starts leaking..
  6. TRSyntax replied to mooms's post in a topic in Switchless installers
    hah! my 32-bit installer was corrupted :doh: i never thought of checking
  7. nice! i.m.o that makes it much easier to add as a silent installer during windows setup especially if you use software like WinToolkit where there is a 'switch input box' for all of our installers yeah, i read that entry when i was trying to figure out the Wow64DisableWow64FsRedirection function. i haven't tried to add it to the inf though. windows should just add it to the dirids with an explanation. that would have saved me some time
  8. btw, the last issue was releated to some system restriction of windows known as 'file system redirection' not giving me access to syswow64 when trying to install drivers with 'rundll32 setupapi.dll,InstallHinfSection DefaultInstall' from my setup batch. Olof had already fixed this with his runwait.exe application, using the Wow64DisableWow64FsRedirection function, but i had no idea. i thought it only used the detached_process creation flag and the startf_useshowwindow startup info flag to hide the console window as i have seen lots of other small apps like his do. while trying to debug the install i didn't want any of those options activated of course and ended up having to learn of this 'file system redirection' by looking through the runwait.exe source. but now i know and everything installs as it should!! sorry for my very little knowlegde in c. i'm working on it!
  9. there is another one ? :w00t: i've always had my eyes on Advanced Bat to Exe Converter but then i would have needed a Distributor License to share my darling batches. the one you shared isn't quite so horsy it seems. some other tools there as well, it's a nice find!! thanks mooms
  10. ah i c. batch compiler. i could swear i saw a ahk script icon.. do you have a license for batch2exe? i've been wanting to buy one for some time. but i've just stucked with ahk myself. a little inconvenient some times as translation is impossible for some code seems lego has added your registry cleanup to his latest version nice!
  11. bonjour mooms. est WTCleanup.exe votre projet? pouvez-vous nous expliquer comment cela fonctionne en profondeur? parce qu'il ne fait rien quand il est exécuté à partir de mon dossier de téléchargements. how's that for google translate?
  12. TRSyntax commented on Legolash2o's comment on a file in Win Toolkit
    the best windows preparer tool that's offered. and it's free!! it'll have my support forever :prop:
  13. haha. sometimes i wonder how i find my own bed at night. these small things slips right pass me. i would have turned gray if it wheren't for your suggestions. thanks again for another time saver now editing my posts won't be such a drag.
  14. Bphlpt.. :worthy: indeed i am, i'm just not that good at spotting stuff like that. and most other forums i'm on does not have that option. i think.... :g: i guess i'm one of those people. at least when i'm trying to post long posts. having to work in that tiny input window is a drag hehe. thanks for showing me the (now very obvious) bbc switch. you made my day!
  15. the editor here is crazy. tried pasting that code like 10 times :\ but it's correct now. i'll just NEVER edit it again EDIT: i just edited it again... and again... and then another time *edit monkey*
  16. from this post i decided to make a command line batch with some useful features: - installation and portable mode - easy creation from command shell (batch directory in system PATH) - adds entries to context menus (extract config from exe and add compiling batch to directory) - sfx module selection (silent, dialogs or custom) - bit selection - multiple runprogram modes: > "file.ext /switches" > "config.txt" in target folder > "!template" from ini file - automatic utf-8 encoding - customizable settings in ini file - predefined config.txt environment - upx compression - silent and verbose run - md5 file creation - it's all batch! help file explains more specific features and usage changes might still happen download the installers created with the batch edit: added it to wincert downloads
  17. fixed the issues. the new version should have it all covered. have not tried the x86 version but i don't see why it shouldn't work.
  18. hah! yeah i guess that line killed all my reasons for arguing and it seems there is more to your toolkit that what my first impression told me! i first installed the toolkit after the installation of imdisk so i missed out on a couple of things like the unified uninstaller. but that is what im looking for im giving up on this project now and will have a admin delete the thread in fact. i keep bumping in to the same problem trying to install the two sys services. they just wont install! the problem even occurs in the standard imdisk setup as well as the toolkit. so i have to do something with my system. might take this up again on a later date as i have created a service for imdisk that mounts images on startup and is being managed by batch scripts. propably going to try putting that in a package at some time. thanks for your time and clarifications! ^^,
  19. NICE! :prop: works alot better than 7z sfx maker which i used untill now for some reason. this method doesn't break my cmd scripts and also allow greater compression! :thumbsup_anim:
  20. First, what i meant by two installations is two keys added in [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\] registry directory. and also, if your ToolKit installs the driver with rundll32 setupapi.dll,InstallHinfSection + installs your ToolKit alongside by other means, that is, i.m.o, TWO installs, whereas having setupapi install it all from the same inf file is ONE install. personal preference maybe. secondly, having to set a GLOBAL environment variable or a LOCAL one in a batch script for that matter, IS much less user-friendly than using a command line switch. in this section (switchless installers) of the forum, having to deal with feeding variables to memory to accomplish a silent install is much more troublesome than by the means of a switch. moslty because most of if not all of the switchless installers are packed in sfx archives. and i checked, imdiskinst.exe from olof does not have a -y switch. it generates a prompt to confirm installation. i'm ushure of this extractor your mentioning. have i missed something? yes that is true, but this switchless installer is for slipstreaming with windows installation and there can't possibly be a former install of imdisk located in system. besides as the user is not logged in while theese installs run, i'm unsure if that a reboot request would even occur. this is new to me!! thank you for that information so without the driver folder there it opens the configuration.. i know that, and love the concept could you explain a little more in depth what this does? and lastly, if you could tell me what exactly your "setup.exe /u" switch does? it only manages the unninstallment of the toolkit right? because, again, i want for this version of Imdisk + Toolkit to be ONE installer \ uninstaller
  21. the error occured since because the folder extracted from the sfx is called imdiskx64, not imdisk i guess i was a little dizzy by the time i started writing the sfx temlates. i'll have them fixed in a minute. as for the IMDISK_SILENT_SETUP env variable olof mentions, he only made it possible to set that varible by other means so that people could create scripts that could in theory make the silent switch in his batch work. but out of the box there is no option to make it totaly silent. just read the rest of point 13. in my version there is no messageboxes and no interaction from imdisk toolkit. and also in this release there isn't two seperate installations for the driver and the toolkit, i made one installer / uninstaller that manages both. the toolkit files are just ported into system alongside the driver via an inf install. less crap in registry and only the necessary files in the installers. the toolkit doesn't have a silent feature for setup btw, only for extraction EDIT: Fixed that issue only to find a new one. i will have it fixed when i have slept. been up for 30 hours and can't accomplish anything right now. check back in say 12-15 hours and it'll be fixed / updated with some extra candy gdnight
  22. TRSyntax replied to mooms's post in a topic in Switchless installers
    hmm. i have the same problem in a vm :\ didn't expect that.. the windows i'm running all of this on is a slimmed down windows 7 image. removed all the "safe" parts with wintoolkit. and messed with the services as well. there might be some backend process needed for something of this thats causing the error.. i didn't think that would be an issue when testing it in a virtual machine but who kows.. i've had som issues with other programs as well but most of them are network related. i'm working on a new build and will post back when i'm trying this again on a more stable os
  23. TRSyntax replied to TRSyntax's post in a topic in Introduction
    hehe. no problem. i would think you mods have seen your fair share of license ignoring people, but i can promise i'm not one of them. any copy righted piece of code on the www will never be abused by this guy. and there will be no "official" SDX.OS warez release from me, only guides and helping software to accomplish what i have figured out. in time.. haha thanks for the (now a bit more) warming welcomes. i'll see to that the releases keeps comming. have 20+ freeware apps and portable enjoyments for that first ramdisk i posted. they will come in time cheers!
  24. TRSyntax replied to TRSyntax's post in a topic in Introduction
    You aren't meaning to release or distribute it. WinCert has a very strong anti warez policy and you will be banned for it. i'm only going to release the "walk through" when i said 'WORKING ON' and 'MY OWN' i never meant releasing anything at all (don't know how you concluded with that). i'm fully aware of what i'm allowed to and not. no worries all i'm going to release is my own software which is all released under GPL and freeware allowed to be distributed. i'm not going to make wincert look bad so you don't have to talk about banning me. thanks for the welcome