Pharaoh Atem
27th March 2006 03:21 UTC
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...
Takhir
27th March 2006 06:09 UTC
Section "My Favorite Section" SEC_1
SectionIn RO
...
AdvSplash plug-in included to distribution.
NewAdvSplash plug-in solves the problem as well.
Pharaoh Atem
28th March 2006 01:40 UTC
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...
Takhir
28th March 2006 06:00 UTC
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.
Pharaoh Atem
28th March 2006 23:11 UTC
So, is there was way to change it to have white to be transparent color instead of black?
Takhir
29th March 2006 05:50 UTC
may be with <...6000 400 400 0xFFFFFF /NOCANCEL ...> color? :)
but please note, that with jpeg compression (8x8 cos approximated segments) transparency may looks terrible.
RobGrant
29th March 2006 13:02 UTC
Shame it doesn't seem to support PNG.
Takhir
29th March 2006 13:27 UTC
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 ;)