Archive: Need Help with Installer Building!


Need Help with Installer Building!
Alright, I wrote a script for installation, where the person may choose to install components... There are not "Full, Typical, Custom" things, I just want the FIRST component locked so that it is required to install. The rest of it is not required to install, and by default is chosen for installation. I just need a way to get a single section to be readonly! Thanks!

EDIT: I also need help getting a splash screen to appear for a few seconds when installer is launched like it does on the ExperienceUI SDK, except I am using Modern UI...


Section "My Favorite Section" SEC_1
SectionIn RO
...

AdvSplash plug-in included to distribution. NewAdvSplash plug-in solves the problem as well.

Thanks! I have to just say this... The regular advsplash doesnt work correctly with JPEG files, so I used the new one... well, it worked fine, but on certain configurations, some spots of color are wiped out, so I don't really know about that... Here is code I used...

Function .onInit
; the plugins dir is automatically deleted when the installer exits
InitPluginsDir
File /oname=$PLUGINSDIR\splash.jpg "C:\splash.jpg"
newadvsplash::show /NOUNLOAD 6000 400 400 /BANNER /NOCANCEL "$PLUGINSDIR\splash.jpg"
Delete $PLUGINSDIR\splash.jpg
FunctionEnd


I don't think anything is wrong with the code...

Transparent color value is a mandatory parameter, do not skip it. And I don't see 'wait' call, so may be sync 'show' call will be OK

Function .onInit
InitPluginsDir
File "/oname=$PLUGINSDIR\splash.jpg" C:\splash.jpg
newadvsplash::show 6000 400 400 -1 /NOCANCEL "$PLUGINSDIR\splash.jpg"
Delete "$PLUGINSDIR\splash.jpg"
FunctionEnd
In your code plug-in threated /BANNER as number (=0) and used black color as transparent.

So, is there was way to change it to have white to be transparent color instead of black?


may be with <...6000 400 400 0xFFFFFF /NOCANCEL ...> color? :)
but please note, that with jpeg compression (8x8 cos approximated segments) transparency may looks terrible.


Shame it doesn't seem to support PNG.


lzma produces good compression, so png gives nothing compare to bmp in compressed package. jpeg gives extra size loss compare to image formats with 100% quality. gif allows to forget current 'transparency color' parameter - good for CVS :) But if you know how to load png and extract bitmap from object for splash window transparent region creation, it becomes possible to update plug-in for uncompressed packages ;)