You are here

help with nsis

7 posts / 0 new
Last post
nycjv321
Offline
Last seen: 15 years 8 months ago
Joined: 2006-06-04 15:53
help with nsis

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

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Huh?

You want to get the letter of the C drive ( Biggrin ) 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."

Ashes for Tears
Offline
Last seen: 16 years 6 months ago
Joined: 2006-01-11 08:41
I think...

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

------

nycjv321
Offline
Last seen: 15 years 8 months ago
Joined: 2006-06-04 15:53
I mean

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)

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Hmm

The only things that bother me:

IfFileExists "C:\uniextract.txt" +1 +3

Instead use:

IfFileExists "C:\uniextract.txt" 0 End

And:

CopyFiles /SILENT /FILESONLY "C:\uniextract.txt" "%EXEDIR\Log\uniextract.txt"

Use:

CopyFiles /SILENT /FILESONLY "C:\uniextract.txt" "$EXEDIR\Log\uniextract.txt"

And lastly:

Delete "C:\uniextract.tx"

Use:

Delete "C:\uniextract.txt"

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."

nycjv321
Offline
Last seen: 15 years 8 months ago
Joined: 2006-06-04 15:53
...

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)

tproli
Offline
Last seen: 11 years 6 months ago
Joined: 2006-07-01 10:07
Another question regarding NSIS

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?

Topic locked