Jump to content

Edit NSIS launcher


asf

Recommended Posts

Hi there

 

Is it possible to edit a portable app launcher created through NSIS?

 

What i want to do is change the splash.bmp, that is located in $pluginsdir together with some dll's (i extracted the exe with 7zip)

 

Thanks

Link to comment
Share on other sites


  • Replies 28
  • Views 2.1k
  • Created
  • Last Reply
31 minutes ago, Kalju said:

Splash image isn't mandatory and You can ignore it at all. 

 

I didn't say i want to remove it.

 

I want to know how could i edit something that is in  $pluginsdir

Link to comment
Share on other sites


In order to explain something, must be known in which case it is used. There are several options and they are a little bit different.

The easiest way is to use the .ini file, but it can not be used if a splash image is in some another rule enabled.
For example, if it is contained in a some dll file, which has already been included in the launcher file.

So, if you want to use a launcher file, where is programmed into the splash, you cannot disable it, You must make a new launcher.exe, without the the splash image.
 If the splash is allowed with launcher.ini file, then can change adding this line:
DisableSplashScreen=true

So, it is for you to decide, whether you will allow or not allow splash.

Link to comment
Share on other sites


1 minute ago, Kalju said:

In order to explain something, must be known in which case it is used. There are several options and they are a little bit different.

The easiest way is to use the .ini file, but it can not be used if a splash image is in some another rule enabled.
For example, if it is contained in a some dll file, which has already been included in the launcher file.

So, if you want to use a launcher file, where is programmed into the splash, you cannot disable it, You must make a new launcher.exe, without the the splash image.
 If the splash is allowed with launcher.ini file, then can change adding this line:
DisableSplashScreen=true

So, it is for you to decide, whether you will allow or not allow splash.

 

I know that i could do it via the ini file, but i want it done internally (*i don't want to remove the splash screen, just change it)

Link to comment
Share on other sites


You can use exactly what you want. Change, if You want. If You said, there is bmp image, change it as You desire. Replace or do what You want.

Link to comment
Share on other sites


Just now, Kalju said:

You can use exactly what you want. Change, if You want. If You said, there is bmp image, change it as You desire. Replace or do what You want.

Yeah but the question is how do i change it?:huh:

Link to comment
Share on other sites


38 minutes ago, andy2004 said:

replace the BMP file with another.

 

That's my question, How?

Link to comment
Share on other sites


well if the file is literally just a bmp file, replace it with another. find the folder, rename old .bmp file. and put in your own.

 

if the file is inside a .dll then you'll need a app reshacker etc to replace it. It all depends on the portable app. how it was created.

 

Link to comment
Share on other sites


Just now, andy2004 said:

well if the file is literally just a bmp file, replace it with another. find the folder, rename old .bmp file. and put in your own.

The problem is that the folder is compressed in the NSIS Launcher :mellow:

Link to comment
Share on other sites


There currently no way into which you can dissemble a NSIS exe file. you can unpack a NSIS setup via 7-zip, but theres no way to get the script out of it.

now it had been INNOsetup that would be easy.

Link to comment
Share on other sites


22 minutes ago, andy2004 said:

now it had been INNOsetup that would be easy.

How do i know if it's InnoSetup?

Link to comment
Share on other sites


I have a portable app called Protection_ID installed. Just right click on the exe file, and then Scan with protectionid, and it will show you.

Protection_ID homepage.

version 6.7.5. current.

most portables are either NSIS, spoon something.

 

You'll need to run protectionid first. then click on the 4th icon down on the left side, and under main configuration, put a tick in the box, context menu.

Link to comment
Share on other sites


It's a Nullsoft SFX Setup v2.5

 

Is there anything i could do or just give up?

 

(maybe i could recreate the script, (it's a portable app so it might be simple no?)

15 minutes ago, andy2004 said:

I have a portable app called Protection_ID installed. Just right click on the exe file, and then Scan with protectionid, and it will show you.

Protection_ID homepage.

version 6.7.5. current.

most portables are either NSIS, spoon something.

 

You'll need to run protectionid first. then click on the 4th icon down on the left side, and under main configuration, put a tick in the box, context menu.

Thanks but now what?

Link to comment
Share on other sites


Well after you ticked that, followed by apply., you can now just right click on a exe file and scan it. note: its not all the app can do.

You could try and recreate the script in NSIS, I wouldnt know where to begin. Personally i would just leave it as is. if it works dont try to fix it.

 

Link to comment
Share on other sites


27 minutes ago, andy2004 said:

Well after you ticked that, followed by apply., you can now just right click on a exe file and scan it. note: its not all the app can do.

Nullsoft SFX Setup v2.50 :mellow:

Link to comment
Share on other sites


7-zip 15.05 Beta is latest version which support nsis script extraction

you can try extract with that version and recreate

7z.dll is enough to temporary change if you use newer 7-zip version

 

Site: http://www.datafilehost.com
Sharecode[?]: /d/cb7e4af5

or download from official site and extract
https://sourceforge.net/projects/sevenzip/files/7-Zip/15.05/

 

example of extracted UltraCompare Portable (official latest portable version)

 

FwU9QhO.png

 

Link to comment
Share on other sites


15 minutes ago, xanax said:

7-zip 15.05 Beta

Site: http://rghost.net
Sharecode[?]: /private/6p2vVynHy/eb741856b526720c7e6d4c10239c776c

 

 

File is corrupt.

 

Got it from the original 7-zip 15.05 Beta

 

will test and return with results

 

Thanks

 

15 minutes ago, xanax said:

7z.dll is enough to temporary change if you use newer 7-zip version

Just an update, this didn't work, so i just ran the original beta program.

Link to comment
Share on other sites


16 minutes ago, xanax said:

7-zip 15.05 Beta is latest version which support nsis script extraction

you can try extract with that version and recreate

7z.dll is enough to temporary change if you use newer 7-zip version

 

Site: http://rghost.net
Sharecode[?]: /private/6p2vVynHy/eb741856b526720c7e6d4c10239c776c

 

example of extracted UltraCompare Portable (official latest portable version)

 

FwU9QhO.png

 

 

WOW i love you!!!:drunk::flowers: THANK YOU!!!!!

 

Now what? i have now a .nsi file what do i do now? how do i recreate it?

 

Thanks!!

Link to comment
Share on other sites


I finally figured out most, now i need some help debugging (I don't understand how the original creator made it if it doesn't compile :huh:)

 

I get an error on this line, whats wrong?

 WriteRegBin HKCU Software\BurnAware\License Key data[91242 ... ]  ; !!! Unsupported

Thanks

Link to comment
Share on other sites


probably depends what crack is used

for example if it uses latest patch from addhaloka then probably goes like this (i think that key is not even necessary with addhaloka patch):

 

WriteRegBin HKCU Software\BurnAware\License Key 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

check documentation here (i'm not familiar with nsis scripting)

http://nsis.sourceforge.net/Reference/WriteRegBin

 

put always qoutes if there is spaces in path, not needed in your case

 

Link to comment
Share on other sites


16 minutes ago, xanax said:

probably depends what crack is used

for example if it uses latest patch from addhaloka then probably goes like this (i think that key is not even necessary with addhaloka patch):

 


WriteRegBin HKCU Software\BurnAware\License Key 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

check documentation here (i'm not familiar with nsis scripting)

http://nsis.sourceforge.net/Reference/WriteRegBin

 

put always qoutes if there is spaces in path, not needed in your case

 

 

My question is what's wrong with the line i copied here, why would it compile? it was already once compiled something is amiss here. 

Link to comment
Share on other sites


I checked what gets created in the registry when i run the original portable, and i get this key.

 

[HKEY_CURRENT_USER\Software\BurnAware\License]
"Key"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00

 

So the question is what's the connection between this and the above line?

WriteRegBin HKCU Software\BurnAware\License Key data[91242 ... ] ; !!! Unsupported

 

Just now, xanax said:

complete decompiling is not fully supported

like it said at the end of line, some stuff is not supported

 

You mean to say the script is not 100%? :o

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...