Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi )

2008-07-15 Thread gnhMichael

Hi All,

 I'm facing a problem in Wix Installer. 
It holding dialog box more an half an hour. Its not showing next dialog box
(Finish Dialog).
Log which i got is below,

MSI (s) (D4:2C) [05:54:51:162]: Note: 1: 1402 2:
UNKNOWN\Installer\Products\B03E6F925DD6B8F4AA3CCD9E18E155CF\SourceList 3: 2 
MSI (s) (D4:2C) [05:54:51:162]: Executing op: ProductPublishClient(,,)
MSI (s) (D4:2C) [05:54:51:162]: Executing op:
SourceListRegisterLastUsed(SourceProduct={29F6E30B-6DD5-4F8B-AAC3-DCE9811E55FC},LastUsedSource=C:\HydraShare\)
MSI (s) (D4:2C) [05:54:51:162]: Entering
CMsiConfigurationManager::SetLastUsedSource.
MSI (s) (D4:2C) [05:54:51:162]: Specifed source is already in a list.
MSI (s) (D4:2C) [05:54:51:162]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (D4:2C) [05:54:51:162]: Machine policy value 'DisableBrowse' is 0
MSI (s) (D4:2C) [05:54:51:162]: Machine policy value 'AllowLockdownBrowse'
is 0
MSI (s) (D4:2C) [05:54:51:162]: Adding new sources is allowed.
MSI (s) (D4:2C) [05:54:51:162]: Set LastUsedSource to: C:\HydraShare\.
MSI (s) (D4:2C) [05:54:51:162]: Set LastUsedType to: n.
MSI (s) (D4:2C) [05:54:51:162]: Set LastUsedIndex to: 1.
MSI (s) (D4:2C) [05:54:51:162]: Executing op:
End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=710790)
MSI (s) (D4:2C) [05:54:51:162]: User policy value 'DisableRollback' is 0
MSI (s) (D4:2C) [05:54:51:162]: Machine policy value 'DisableRollback' is 0
Action 5:54:51: RollbackCleanup. Removing backup files

After this message, windows waiting for long time to finish installation.

Please anyone help me out.

Thanks in advance.

- Michael


Akshat Sharma wrote:
 
 Hi All,
 
  I am logged in as an administrative user in windows vista and I have a
 custom action (which calls a VB script function) in my .wxs file which
 creates a firewall exception.
 If I run the created .msi normally (just double clicking on it), the
 installation goes to completion but my firewall exception is not made. If
 I  run the command prompt as Administrator and then run the .msi thru it
 ,the firewall exception gets created.  I cannot understand the reason for
 this.
 
 I even have a condition which checks whether I am an admin or not and will
 ensures that the installation runs only if I am an admin.  The
 installation does run and does not flag any error (meaning I am the admin)
 but the firewall exception is not created.
 
 Where am I going wrong ??
 
 My  .wxs file looks like this :
 
 .
 .
 .
 Condition Message=You need to be an administrator to install this
 product.
   Privileged
   /Condition
 .
 .
 .
 InstallExecuteSequence
Custom Action=FireWall Sequence='1'/
   /InstallExecuteSequence
 
   Binary Id='b.vbs' src='b.vbs'/
   CustomAction Id='FireWall' BinaryKey='b.vbs'
 VBScriptCall='FirewallEntry' Return='check'/
 .
 .
 .
 .
 
 My script file b.vbs is :
 
 Function FireWallEntry
 
 Set objFirewall = CreateObject(HNetCfg.FwMgr)
 Set objPolicy = objFirewall.LocalPolicy.CurrentProfile
 
 Set objApplication = CreateObject(HNetCfg.FwAuthorizedApplication)
 objApplication.Name = Fence aks Manager
 objApplication.IPVersion = 2
 objApplication.ProcessImageFileName = PATH to my PROGRAM
 objApplication.RemoteAddresses = *
 objApplication.Scope = 0
 objApplication.Enabled = True
 
 Set colApplications = objPolicy.AuthorizedApplications
 colApplications.Add(objApplication)
 
 
 
 -Regards,
 Akshat
 end Function
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 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/Problem-with-privileges-in-Custom-Action-%28-Wix-%29%28-.msi-%29-tp1800p18386140.html
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi )

2008-07-15 Thread Bob Arnson
gnhMichael wrote:
 MSI (s) (D4:2C) [05:54:51:162]: Machine policy value 'DisableRollback' is 0
 Action 5:54:51: RollbackCleanup. Removing backup files

 After this message, windows server 2008 waiting for long time to finish
 installation.
   

This is where Windows Installer finalizes its transaction. What's the 
next few lines of the log when it finishes?

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



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi )

2008-07-15 Thread jmcfadyen

Try dropping the function wrapping statements. 

i.e. Function FireWallEntry / End Function 

Then just leave VBScriptCall= this way you can narrow down whether the
function is even being called. 

Also ensure you have these attributes 

Execute=deferred 
Impersonate=no



Akshat Sharma wrote:
 
 Hi All,
 
  I am logged in as an administrative user in windows vista and I have a
 custom action (which calls a VB script function) in my .wxs file which
 creates a firewall exception.
 If I run the created .msi normally (just double clicking on it), the
 installation goes to completion but my firewall exception is not made. If
 I  run the command prompt as Administrator and then run the .msi thru it
 ,the firewall exception gets created.  I cannot understand the reason for
 this.
 
 I even have a condition which checks whether I am an admin or not and will
 ensures that the installation runs only if I am an admin.  The
 installation does run and does not flag any error (meaning I am the admin)
 but the firewall exception is not created.
 
 Where am I going wrong ??
 
 My  .wxs file looks like this :
 
 .
 .
 .
 Condition Message=You need to be an administrator to install this
 product.
   Privileged
   /Condition
 .
 .
 .
 InstallExecuteSequence
Custom Action=FireWall Sequence='1'/
   /InstallExecuteSequence
 
   Binary Id='b.vbs' src='b.vbs'/
   CustomAction Id='FireWall' BinaryKey='b.vbs'
 VBScriptCall='FirewallEntry' Return='check'/
 .
 .
 .
 .
 
 My script file b.vbs is :
 
 Function FireWallEntry
 
 Set objFirewall = CreateObject(HNetCfg.FwMgr)
 Set objPolicy = objFirewall.LocalPolicy.CurrentProfile
 
 Set objApplication = CreateObject(HNetCfg.FwAuthorizedApplication)
 objApplication.Name = Fence aks Manager
 objApplication.IPVersion = 2
 objApplication.ProcessImageFileName = PATH to my PROGRAM
 objApplication.RemoteAddresses = *
 objApplication.Scope = 0
 objApplication.Enabled = True
 
 Set colApplications = objPolicy.AuthorizedApplications
 colApplications.Add(objApplication)
 
 
 
 -Regards,
 Akshat
 end Function
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 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/Problem-with-privileges-in-Custom-Action-%28-Wix-%29%28-.msi-%29-tp1800p18478920.html
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi )

2008-06-19 Thread Rob Hamflett
The problem is that the custom action needs to be run with elevated privileges, 
which is what you 
get when you open a command prompt as Administrator.  You need [EMAIL 
PROTECTED]elevated. 
  The custom action will also need to be a deferred action.

Rob

Akshat Sharma wrote:
 Hi All,
 
  I am logged in as an administrative user in windows vista and I have a 
 custom action (which calls a VB script function) in my .wxs file which 
 creates a firewall exception.
 If I run the created .msi normally (just double clicking on it), the 
 installation goes to completion but my firewall exception is not made. If I  
 run the command prompt as Administrator and then run the .msi thru it ,the 
 firewall exception gets created.  I cannot understand the reason for this.
 
 I even have a condition which checks whether I am an admin or not and will 
 ensures that the installation runs only if I am an admin.  The installation 
 does run and does not flag any error (meaning I am the admin) but the 
 firewall exception is not created.
 
 Where am I going wrong ??
 
 My  .wxs file looks like this :
 
 .
 .
 .
 Condition Message=You need to be an administrator to install this product.
   Privileged
   /Condition
 .
 .
 .
 InstallExecuteSequence
Custom Action=FireWall Sequence='1'/
   /InstallExecuteSequence
 
   Binary Id='b.vbs' src='b.vbs'/
   CustomAction Id='FireWall' BinaryKey='b.vbs' 
 VBScriptCall='FirewallEntry' Return='check'/
 .
 .
 .
 .
 
 My script file b.vbs is :
 
 Function FireWallEntry
 
 Set objFirewall = CreateObject(HNetCfg.FwMgr)
 Set objPolicy = objFirewall.LocalPolicy.CurrentProfile
 
 Set objApplication = CreateObject(HNetCfg.FwAuthorizedApplication)
 objApplication.Name = Fence aks Manager
 objApplication.IPVersion = 2
 objApplication.ProcessImageFileName = PATH to my PROGRAM
 objApplication.RemoteAddresses = *
 objApplication.Scope = 0
 objApplication.Enabled = True
 
 Set colApplications = objPolicy.AuthorizedApplications
 colApplications.Add(objApplication)
 
 
 
 -Regards,
 Akshat
 end Function
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi )

2008-06-19 Thread Simon Dahlbacka
I seem to remember that a firewall extension was mentioned on the list some
time ago.

http://www.joyofsetup.com/2008/05/17/new-wix-feature-firewall-extension/

Have you checked that it does not fit your needs?

regards,
Simon

On Thu, Jun 19, 2008 at 12:47 PM, Akshat Sharma [EMAIL PROTECTED]
wrote:

 Hi All,

  I am logged in as an administrative user in windows vista and I have a
 custom action (which calls a VB script function) in my .wxs file which
 creates a firewall exception.
 If I run the created .msi normally (just double clicking on it), the
 installation goes to completion but my firewall exception is not made. If I
  run the command prompt as Administrator and then run the .msi thru it ,the
 firewall exception gets created.  I cannot understand the reason for this.

 I even have a condition which checks whether I am an admin or not and will
 ensures that the installation runs only if I am an admin.  The installation
 does run and does not flag any error (meaning I am the admin) but the
 firewall exception is not created.

 Where am I going wrong ??

 My  .wxs file looks like this :

 .
 .
 .
 Condition Message=You need to be an administrator to install this
 product.
  Privileged
  /Condition
 .
 .
 .
 InstallExecuteSequence
   Custom Action=FireWall Sequence='1'/
  /InstallExecuteSequence

  Binary Id='b.vbs' src='b.vbs'/
  CustomAction Id='FireWall' BinaryKey='b.vbs'
 VBScriptCall='FirewallEntry' Return='check'/
 .
 .
 .
 .

 My script file b.vbs is :

 Function FireWallEntry

 Set objFirewall = CreateObject(HNetCfg.FwMgr)
 Set objPolicy = objFirewall.LocalPolicy.CurrentProfile

 Set objApplication = CreateObject(HNetCfg.FwAuthorizedApplication)
 objApplication.Name = Fence aks Manager
 objApplication.IPVersion = 2
 objApplication.ProcessImageFileName = PATH to my PROGRAM
 objApplication.RemoteAddresses = *
 objApplication.Scope = 0
 objApplication.Enabled = True

 Set colApplications = objPolicy.AuthorizedApplications
 colApplications.Add(objApplication)



 -Regards,
 Akshat
 end Function
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi )

2008-06-19 Thread Akshat Sharma
Thanks for the reply. I implemented the changes you suggested and provided the 
action the required sequencing. But still the installation goes to completion 
without making the necessary firewall exception.
Anything else that might just be missing??

Regards,
Akshat

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett
Sent: 19 June 2008 15:37
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi 
)

The problem is that the custom action needs to be run with elevated privileges, 
which is what you
get when you open a command prompt as Administrator.  You need [EMAIL 
PROTECTED]elevated.
  The custom action will also need to be a deferred action.

Rob

Akshat Sharma wrote:
 Hi All,

  I am logged in as an administrative user in windows vista and I have a 
 custom action (which calls a VB script function) in my .wxs file which 
 creates a firewall exception.
 If I run the created .msi normally (just double clicking on it), the 
 installation goes to completion but my firewall exception is not made. If I  
 run the command prompt as Administrator and then run the .msi thru it ,the 
 firewall exception gets created.  I cannot understand the reason for this.

 I even have a condition which checks whether I am an admin or not and will 
 ensures that the installation runs only if I am an admin.  The installation 
 does run and does not flag any error (meaning I am the admin) but the 
 firewall exception is not created.

 Where am I going wrong ??

 My  .wxs file looks like this :

 .
 .
 .
 Condition Message=You need to be an administrator to install this product.
   Privileged
   /Condition
 .
 .
 .
 InstallExecuteSequence
Custom Action=FireWall Sequence='1'/
   /InstallExecuteSequence

   Binary Id='b.vbs' src='b.vbs'/
   CustomAction Id='FireWall' BinaryKey='b.vbs' 
 VBScriptCall='FirewallEntry' Return='check'/
 .
 .
 .
 .

 My script file b.vbs is :

 Function FireWallEntry

 Set objFirewall = CreateObject(HNetCfg.FwMgr)
 Set objPolicy = objFirewall.LocalPolicy.CurrentProfile

 Set objApplication = CreateObject(HNetCfg.FwAuthorizedApplication)
 objApplication.Name = Fence aks Manager
 objApplication.IPVersion = 2
 objApplication.ProcessImageFileName = PATH to my PROGRAM
 objApplication.RemoteAddresses = *
 objApplication.Scope = 0
 objApplication.Enabled = True

 Set colApplications = objPolicy.AuthorizedApplications
 colApplications.Add(objApplication)



 -Regards,
 Akshat
 end Function
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi )

2008-06-19 Thread Rob Hamflett
Are you definitely getting a UAC prompt during the install?  I'd suggest 
getting the script to log 
some details to a file, and then you can see exactly what fails, and why.

Rob

Akshat Sharma wrote:
 Thanks for the reply. I implemented the changes you suggested and provided 
 the action the required sequencing. But still the installation goes to 
 completion without making the necessary firewall exception.
 Anything else that might just be missing??
 
 Regards,
 Akshat
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett
 Sent: 19 June 2008 15:37
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( 
 .msi )
 
 The problem is that the custom action needs to be run with elevated 
 privileges, which is what you
 get when you open a command prompt as Administrator.  You need [EMAIL 
 PROTECTED]elevated.
   The custom action will also need to be a deferred action.
 
 Rob
 
 Akshat Sharma wrote:
 Hi All,

  I am logged in as an administrative user in windows vista and I have a 
 custom action (which calls a VB script function) in my .wxs file which 
 creates a firewall exception.
 If I run the created .msi normally (just double clicking on it), the 
 installation goes to completion but my firewall exception is not made. If I  
 run the command prompt as Administrator and then run the .msi thru it ,the 
 firewall exception gets created.  I cannot understand the reason for this.

 I even have a condition which checks whether I am an admin or not and will 
 ensures that the installation runs only if I am an admin.  The installation 
 does run and does not flag any error (meaning I am the admin) but the 
 firewall exception is not created.

 Where am I going wrong ??

 My  .wxs file looks like this :

 .
 .
 .
 Condition Message=You need to be an administrator to install this 
 product.
   Privileged
   /Condition
 .
 .
 .
 InstallExecuteSequence
Custom Action=FireWall Sequence='1'/
   /InstallExecuteSequence

   Binary Id='b.vbs' src='b.vbs'/
   CustomAction Id='FireWall' BinaryKey='b.vbs' 
 VBScriptCall='FirewallEntry' Return='check'/
 .
 .
 .
 .

 My script file b.vbs is :

 Function FireWallEntry

 Set objFirewall = CreateObject(HNetCfg.FwMgr)
 Set objPolicy = objFirewall.LocalPolicy.CurrentProfile

 Set objApplication = CreateObject(HNetCfg.FwAuthorizedApplication)
 objApplication.Name = Fence aks Manager
 objApplication.IPVersion = 2
 objApplication.ProcessImageFileName = PATH to my PROGRAM
 objApplication.RemoteAddresses = *
 objApplication.Scope = 0
 objApplication.Enabled = True

 Set colApplications = objPolicy.AuthorizedApplications
 colApplications.Add(objApplication)



 -Regards,
 Akshat
 end Function
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi )

2008-06-19 Thread Akshat Sharma
Thanks Rob. I was missing out on Impersonate=no. Once I did that, everything 
worked as desired.

-Akshat

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett
Sent: 19 June 2008 17:22
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( .msi 
)

Are you definitely getting a UAC prompt during the install?  I'd suggest 
getting the script to log
some details to a file, and then you can see exactly what fails, and why.

Rob

Akshat Sharma wrote:
 Thanks for the reply. I implemented the changes you suggested and provided 
 the action the required sequencing. But still the installation goes to 
 completion without making the necessary firewall exception.
 Anything else that might just be missing??

 Regards,
 Akshat

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett
 Sent: 19 June 2008 15:37
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] Problem with privileges in Custom Action ( Wix )( 
 .msi )

 The problem is that the custom action needs to be run with elevated 
 privileges, which is what you
 get when you open a command prompt as Administrator.  You need [EMAIL 
 PROTECTED]elevated.
   The custom action will also need to be a deferred action.

 Rob

 Akshat Sharma wrote:
 Hi All,

  I am logged in as an administrative user in windows vista and I have a 
 custom action (which calls a VB script function) in my .wxs file which 
 creates a firewall exception.
 If I run the created .msi normally (just double clicking on it), the 
 installation goes to completion but my firewall exception is not made. If I  
 run the command prompt as Administrator and then run the .msi thru it ,the 
 firewall exception gets created.  I cannot understand the reason for this.

 I even have a condition which checks whether I am an admin or not and will 
 ensures that the installation runs only if I am an admin.  The installation 
 does run and does not flag any error (meaning I am the admin) but the 
 firewall exception is not created.

 Where am I going wrong ??

 My  .wxs file looks like this :

 .
 .
 .
 Condition Message=You need to be an administrator to install this 
 product.
   Privileged
   /Condition
 .
 .
 .
 InstallExecuteSequence
Custom Action=FireWall Sequence='1'/
   /InstallExecuteSequence

   Binary Id='b.vbs' src='b.vbs'/
   CustomAction Id='FireWall' BinaryKey='b.vbs' 
 VBScriptCall='FirewallEntry' Return='check'/
 .
 .
 .
 .

 My script file b.vbs is :

 Function FireWallEntry

 Set objFirewall = CreateObject(HNetCfg.FwMgr)
 Set objPolicy = objFirewall.LocalPolicy.CurrentProfile

 Set objApplication = CreateObject(HNetCfg.FwAuthorizedApplication)
 objApplication.Name = Fence aks Manager
 objApplication.IPVersion = 2
 objApplication.ProcessImageFileName = PATH to my PROGRAM
 objApplication.RemoteAddresses = *
 objApplication.Scope = 0
 objApplication.Enabled = True

 Set colApplications = objPolicy.AuthorizedApplications
 colApplications.Add(objApplication)



 -Regards,
 Akshat
 end Function
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users