Help im trying to make portable universal extractor im have succesfully compiled it using Quick Port Template 1.1 which works but im trying to add some new code so it will also move the c:\uniextract.txt file it creates to portable uniextract's folder and then delete it from C:\. any ideas on making nsis reconizing the root of the C: hard drive
You want to get the letter of the C drive ( ) or the letter of the drive it's running on?
----
R McCue
PortaBlog Home and My Website
PortaBlog is now officially out of beta!
"If you're not part of the solution, you're part of the precipitate."
That he's trying to take the info thats stored inthe root of the C: drive and make it so that it's like the traveling profiles of FFP and TBP. I had been thinking about this idea since someone posted that reg/unreg script for CCleaner. I'll try experimenting with Windows commands later, but this really may not be possible without admin rights...
Ashes
------
yea, like what you are saying Ashes for Tears
But lemme explain better
If u have ever used Universal Extractor
(http://www.legroom.net/modules.php?op=modload&name=Open_Source&file=inde...)
and tried to extract an archive lets say a .msi installer and for some strange resean(i cant spell sorry) it wont extract it, it will then create a text file in the root of the c:\ drive like C:\uniextractor.txt explaining what happened (e.g. not enough memory) so far i have succussfully compiled a version that takes care of the registry keys thanks to QuickPort Template! So Im trying to add a section to remove that file from the root of the c:\ drive to maybe a folder within univerasal extractors Folder (or Portable UniExtract as i call it now). i tryied like something like (i donthave the exact code with me) after the last section i add the new code begins at "goto DeleteLog"
Sleep 500
Delete ${CURRENT}
goto DeleteLog
DeleteLog:
IfFileExists "C:\uniextract.txt" +1 +3
CopyFiles /SILENT /FILESONLY "C:\uniextract.txt" "%EXEDIR\Log\uniextract.txt"
Delete "C:\uniextract.tx"
Goto End
End:
SectionEnd
---------------------------------------------------------------------------------
This is what i added to the last section and heres the new section So It Compiles (WIth No Errors) and i try a msi i know that wont extract, this then creates that txt file (at C:\uniextract.txt), then i exit and that code should have taken care of the txt file created in C:\ what im i missing or am i doing something completly wrong? Please Help! Thx! Again!
Slackware 12 for system
MCP (For XP and Server 2003)
Network + Certified
aim is "nycjv321" (minus quotes)
The only things that bother me:
Instead use:
And:
Use:
And lastly:
Use:
Thats all I can think of.
----
R McCue
PortaBlog Home and My Website
PortaBlog is now officially out of beta!
"If you're not part of the solution, you're part of the precipitate."
Well I Compiled it and like before and it does the same thing; nothing. I Meant Delete "C:\uniextract.txt" orginally I just type weird. So it still doesnt work idk why. I just realised that universal extractor (the app not the launcher) takes up 96% of system Resources! (Im Running a 2.6gig processor) just saying, Well Thx anyway Ill just keep messing with and see what happens!
Slackware 12 for system
MCP (For XP and Server 2003)
Network + Certified
aim is "nycjv321" (minus quotes)
I used NSIS to create launchers to some progs but there's one prog that writes its path in DOS format in the registry (example: c:\prog~1\software).
Is it possible to do it with NSIS?