Re: [WiX-users] Shield Decoration on buttons

2007-08-29 Thread JosephLee

hi,

I have the same problem. And now i have something even more serious. In my
package, i have something out of the installer's control, just an service
have registries self-registered. When I do an maintenance using the package,
just like Remove action, but the UAC credentials won't prompt, and the
service can't be removed, neither the file associates it. And when i run the
package again, it appears not the setup dialog but the maintenance dialog, i
choose Remove again, the UAC credentials prompt, but nothing happened
besides this. The file and the service is still running normally.

Is there something wrong? 
thanks for help~~

In addition, if i uninstall the product from the Add/Remove Program, the
credentials prompt, the service and the file are all removed. This also can
be done when we run this as an administrator. 

Rob Hamflett wrote:
 
 Hopefully I'm just being stupid and have missed something obvious, but I'm
 having problems with 
 decorating a button with the Shield icon (for Vista UAC).  I have 
 [EMAIL PROTECTED]elevated, and on my final Install button I
 have 
 [EMAIL PROTECTED]yes.  This works.  I have the same thing on my
 Repair and Remove 
 buttons but they don't show the shield icon.  Is there something I've
 missed?  I've posted the code 
 below in case it helps.
 
 This shows the shield graphic:
 Control Id=Install Type=PushButton
 X=$(var.VerifyReadyDlg_Install_X) Y=243 
 Width=$(var.VerifyReadyDlg_Install_Width) Height=17 Default=yes
 Text=[ButtonText_Install] 
 ElevationShield=yes
Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace 
 1]]/Publish
Publish Event=SpawnDialog
 Value=OutOfRbDiskDlg![CDATA[OutOfDiskSpace = 1 AND 
 OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST=P OR NOT
 PROMPTROLLBACKCOST)]]/Publish
Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace = 1
 AND OutOfNoRbDiskSpace = 0 
 AND PROMPTROLLBACKCOST=D]]/Publish
Publish Event=EnableRollback Value=False![CDATA[OutOfDiskSpace =
 1 AND OutOfNoRbDiskSpace 
 = 0 AND PROMPTROLLBACKCOST=D]]/Publish
Publish Event=SpawnDialog
 Value=OutOfDiskDlg![CDATA[(OutOfDiskSpace = 1 AND 
 OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND
 PROMPTROLLBACKCOST=F)]]/Publish
 /Control
 
 This doesn't:
 Control Id=Repair Type=PushButton X=236 Y=243 Width=56
 Height=17 Default=yes 
 Text=[ButtonText_Repair] ElevationShield=yes
Publish Event=ReinstallMode Value=ecmus![CDATA[OutOfDiskSpace 
 1]]/Publish
Publish Event=Reinstall Value=All![CDATA[OutOfDiskSpace 
 1]]/Publish
Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace 
 1]]/Publish
Publish Event=SpawnDialog
 Value=OutOfRbDiskDlg![CDATA[OutOfDiskSpace = 1 AND 
 OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST=P OR NOT
 PROMPTROLLBACKCOST)]]/Publish
Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace = 1
 AND OutOfNoRbDiskSpace = 0 
 AND PROMPTROLLBACKCOST=D]]/Publish
Publish Event=EnableRollback Value=False![CDATA[OutOfDiskSpace =
 1 AND OutOfNoRbDiskSpace 
 = 0 AND PROMPTROLLBACKCOST=D]]/Publish
Publish Event=SpawnDialog
 Value=OutOfDiskDlg![CDATA[(OutOfDiskSpace = 1 AND 
 OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND
 PROMPTROLLBACKCOST=F)]]/Publish
 /Control
 
 
 Rob
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Shield-Decoration-on-buttons-tf3566512.html#a12383502
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-08-29 Thread Bob Arnson
JosephLee wrote:
 I have the same problem. And now i have something even more serious. In my
 package, i have something out of the installer's control, just an service
 have registries self-registered. When I do an maintenance using the package,
 just like Remove action, but the UAC credentials won't prompt, 

That's by design: MSI doesn't require another elevation prompt in the 
case of repair, because it's not doing anything that hasn't already been 
approved. Adding or removing features does require elevation consent. If 
your custom actions are all appropriately deferred, no-impersonate after 
InstallInitialize and before InstallFinalize, MSI elevates them 
appropriately.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-07-16 Thread Bob Arnson

Please keep /wix-users/ on the thread.

Deily, Don wrote:

I'm having the same problem as Gareth at Serif: In Vista, my installer has properties 
that cause Ignoring disallowed property messages.
My question to you is: How do I use your suggested grammar 
Property/@Secure=yes  ?  Is that how I specify the property in the Property 
table?
  


Yes. Use the Secure attribute in a Property element to have WiX add it 
to the SecureCustomProperties property. MSI uses that to determine which 
properties to pass to the execute server.


--
sig://boB
http://joyofsetup.com/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-05-15 Thread Bob Arnson
Gareth at Serif wrote:
 I'm not sure what you require by way of an example.  

Well, remember I don't have your packages or your logs or your apps. 
Raymond Chen calls it psychic debugging.

 Now, the two events will be obviously different because the first will
 trigger a UAC prompt as soon as it runs because of the special nature of exe
 files called setup.  The second will not have a UAC prompt... ever.  

Repair doesn't trigger a UAC prompt because a UAC prompt was already 
required to install it and repairing doesn't introduce any additional 
security concerns.

 What if the value of ROOTDRIVE is important for subsequent CAs?  

Use Property/@Secure=yes to mark it as secure. Even though UAC doesn't 
prompt, there's still an elevation as MSI switches to the execute 
sequence. You need to mark properties secure so they're correctly passed 
to the execute sequence.

 These lines
 'ignoring disallowed property' exist when attempting to pass the location of
 every single component in my package.
   

This is the primary source of my confusion: What location of every 
single component do you mean? MSI creates properties matching every 
*directory* but not component.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-05-11 Thread Gareth at Serif

Hi Rob,

I've started to see some peculiar results due to priveledge issues on Vista
and found myself back in this thread.  I find, as I think you have, that
once the app in question is installed, the elevation being passed to the
client side of the install differ greatly depending on how you chose to
initialise a Repair process, for example.  In that, running the bootstrapper
again gives a UAC prompt and then all is good, or you can run the MSI again,
there is no UAC prompt until much later on and the information being passed
to the client side is greatly reduced and potentially detremental to the
expected behaviour of later custom actions.

I hoped that adding the msidbControlAttributesElevationShield attribute to
my Install, Repair and Change buttons would give the engine a better clue
that, I really need elevating now! But alas, I don't have a shield
appearing anywhere and the install's elevated behaviour has not improved.

So, can anyone explain how to get this icon to appear, and will it force a
UAC prompt?  And why does Vista allow you to initiate a Repair in such
drastically different ways to such a degree that you can't be sure what's
going to be passed to the client side and what isn't?

All comments welcome,
Gareth
-- 
View this message in context: 
http://www.nabble.com/Shield-Decoration-on-buttons-tf3566512.html#a10435009
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-05-11 Thread Bob Arnson
Gareth at Serif wrote:
 there is no UAC prompt until much later on and the information being passed
 to the client side is greatly reduced and potentially detremental to the
 expected behaviour of later custom actions.
   

You can mark properties as Secure=yes to get them passed to the server.

 So, can anyone explain how to get this icon to appear, and will it force a
 UAC prompt?  

No. The shield is just a decoration for the user. The UI sequence is 
never elevated (or rather, it has the privileges of the user, which 
aren't elevated when UAC is on).

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-04-17 Thread Gareth at Serif

I find that the msi file extension tells Vista that the process requires
elevation and you get the UAC prompt before the UI Sequene begins. 
Therefore, by the time you get to your 'Install' button with the potential
to display your UAC Shield, the install doesn't require elevation (as it all
ready has it) and the behaviour decides not to show the shield as it's not
going to call UAC.

Basically, your installation should call UAC only once.  If your
bootstrapper icon has been deemed worthy of the shield by Vista, this will
call UAC.  From then on, nothing needs the shield and shouldn't have it.  To
stop this and only elevate when you actually click 'Install' (and so display
the shield) you will need to stop the install from elevating itself before
the UI begins - probably with an appropriate manifest file.

Best of luck,
Gareth
-- 
View this message in context: 
http://www.nabble.com/Shield-Decoration-on-buttons-tf3566512.html#a10032713
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-04-17 Thread Rob Hamflett
That's what I'm doing.  My bootstrapper runs with asInvoker elevation 
requirements.  The UAC happens 
  when Windows Installer changes from client-side to server-side during the 
install.  I also find 
that running an MSI directly doesn't show the UAC prompt until it switches to 
the server-side.

Rob

Gareth at Serif wrote:
 I find that the msi file extension tells Vista that the process requires
 elevation and you get the UAC prompt before the UI Sequene begins. 
 Therefore, by the time you get to your 'Install' button with the potential
 to display your UAC Shield, the install doesn't require elevation (as it all
 ready has it) and the behaviour decides not to show the shield as it's not
 going to call UAC.
 
 Basically, your installation should call UAC only once.  If your
 bootstrapper icon has been deemed worthy of the shield by Vista, this will
 call UAC.  From then on, nothing needs the shield and shouldn't have it.  To
 stop this and only elevate when you actually click 'Install' (and so display
 the shield) you will need to stop the install from elevating itself before
 the UI begins - probably with an appropriate manifest file.
 
 Best of luck,
 Gareth


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-04-13 Thread Rob Hamflett
I'm still not sure I get it.  I don't see why MsiRunningElevated is set so 
early on uninstall, 
especially since it obviously isn't.  It gives you a UAC prompt later on.  As 
for the link you sent 
me, I didn't really see anything that explains what I'm seeing.

Rob

Stefan Pavlik wrote:
 Stefan Pavlik wrote:
 But when you check the uninstallation log you will see that the
 
 I meant:
 But when you check the maintenance installation log you will see...
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Shield Decoration on buttons

2007-04-12 Thread Rob Hamflett
Hopefully I'm just being stupid and have missed something obvious, but I'm 
having problems with 
decorating a button with the Shield icon (for Vista UAC).  I have 
[EMAIL PROTECTED]elevated, and on my final Install button I have 
[EMAIL PROTECTED]yes.  This works.  I have the same thing on my Repair and 
Remove 
buttons but they don't show the shield icon.  Is there something I've missed?  
I've posted the code 
below in case it helps.

This shows the shield graphic:
Control Id=Install Type=PushButton X=$(var.VerifyReadyDlg_Install_X) 
Y=243 
Width=$(var.VerifyReadyDlg_Install_Width) Height=17 Default=yes 
Text=[ButtonText_Install] 
ElevationShield=yes
   Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace  
1]]/Publish
   Publish Event=SpawnDialog Value=OutOfRbDiskDlg![CDATA[OutOfDiskSpace 
= 1 AND 
OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST=P OR NOT 
PROMPTROLLBACKCOST)]]/Publish
   Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 
AND PROMPTROLLBACKCOST=D]]/Publish
   Publish Event=EnableRollback Value=False![CDATA[OutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace 
= 0 AND PROMPTROLLBACKCOST=D]]/Publish
   Publish Event=SpawnDialog Value=OutOfDiskDlg![CDATA[(OutOfDiskSpace = 
1 AND 
OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
PROMPTROLLBACKCOST=F)]]/Publish
/Control

This doesn't:
Control Id=Repair Type=PushButton X=236 Y=243 Width=56 Height=17 
Default=yes 
Text=[ButtonText_Repair] ElevationShield=yes
   Publish Event=ReinstallMode Value=ecmus![CDATA[OutOfDiskSpace  
1]]/Publish
   Publish Event=Reinstall Value=All![CDATA[OutOfDiskSpace  
1]]/Publish
   Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace  
1]]/Publish
   Publish Event=SpawnDialog Value=OutOfRbDiskDlg![CDATA[OutOfDiskSpace 
= 1 AND 
OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST=P OR NOT 
PROMPTROLLBACKCOST)]]/Publish
   Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 
AND PROMPTROLLBACKCOST=D]]/Publish
   Publish Event=EnableRollback Value=False![CDATA[OutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace 
= 0 AND PROMPTROLLBACKCOST=D]]/Publish
   Publish Event=SpawnDialog Value=OutOfDiskDlg![CDATA[(OutOfDiskSpace = 
1 AND 
OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
PROMPTROLLBACKCOST=F)]]/Publish
/Control


Rob


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shield Decoration on buttons

2007-04-12 Thread Stefan Pavlik
Stefan Pavlik wrote:
 But when you check the uninstallation log you will see that the

I meant:
But when you check the maintenance installation log you will see...

-- 
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies s.r.o. | www.whitestein.com
Panenska 28 | 811 03 Bratislava | Slovak Republic
Main +421 2 5443-5502 | Direct +421 2 5930-0735

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wix-users