You are here

Installer warning

4 posts / 0 new
Last post
Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 14 years 7 months ago
Developer
Joined: 2007-10-23 22:14
Installer warning

The PA.com installer (all versions that I've seen) generates a warning when compiled:

unknown variable/constant "{SectionMain}" detected, ignoring

This is caused by the following line in function LeaveDirectory:

SectionGetSize ${SectionMain} $1 ;=== Space Required for App

This can be fixed by moving the Section above the Functions, and changing the Section header to read:

Section "!App Portable (required)" SectionMain

Is there a reason this hasn't been or shouldn't be done?

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 52 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Nope

There is (or at least was on last check) a bug in NSIS that causes a long 60 second+ wait when you move it above in certain instances on the installation end. Besides, it's just a warning.

Sometimes, the impossible can become possible, if you're awesome!

Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 14 years 7 months ago
Developer
Joined: 2007-10-23 22:14
RE: Nope

Ok, thanks. I'll play around with it and see if that's still the case.

I know it's just a warning, but I was taught to treat all warnings as errors unless they're the fault of the compiler so it was bugging me. If that wait still happens that would qualify as compiler error and placate the little professor that sits on my shoulder and yells at me when my code is sloppy. Wink

formerly rayven01

Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 14 years 7 months ago
Developer
Joined: 2007-10-23 22:14
RE: Nope

It does indeed still seem to be an issue. With the section moved above the functions the installer pauses for a noticable while after you hit the 'Install' button.. so long that I actually hit 'Install' again and caused the installer to freak out and declare itself corrupt! Thanks for the tip, I probably wouldn't have tied the two things together otherwise.

formerly rayven01

Log in or register to post comments