why not jscript or vbscript inline custom action?





С уважением,
Бетке Сергей Сергеевич.





От: Harold Wood (H10 Capital)
Отправлено: ‎четверг‎, ‎20‎ ‎марта‎ ‎2014‎ г. ‎1‎:‎49
Кому: General discussion about the WiX toolset.





Ok this is what I have so far:

Product.wxs


      <!--Display the uninstall message box so user is informed we will not 
remove the databases-->
      <Custom Action ="UninstallMessage"         
After="InstallFinalize">Remove</Custom>
      <Custom Action ="UninstallMessage.Show"    
After="UninstallMessage">Remove</Custom>

CustomAction.cs

[CustomAction]
      public static ActionResult UninstallMessage(Session session)
      {
          if (session == null)
          {
              
logEventsApp.WriteLoggingEvent(string.Format(CultureInfo.InvariantCulture, "{0} 
; {1}", Resources.ArgumentNullError, "session"), session);
              throw new ArgumentNullException("session", 
Resources.ArgumentNullError);
          }

          // This is just to display a message box that informs the user that 
they will have to remove the databases manually
          StringBuilder notificationMessage = new StringBuilder("The actual 
databases will not be removed from the server by this.");
          notificationMessage.Append("\r\n\r\n");
          notificationMessage.Append("You will have to manually remove the 
Databases from your server.");

          Record record = new Record();
          record.FormatString = notificationMessage.ToString();
          MessageResult value = session.Message(InstallMessage.Info | 
(InstallMessage)MessageIcon.Warning | (InstallMessage)MessageButtons.OK, 
record);

          return ActionResult.Success;
      }

And im still not getting the message box.  So what am I doing wrong?

Thanks

Woody
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to