Skip to content

Instantly share code, notes, and snippets.

Avatar

David Miller racingcow

View GitHub Profile
@racingcow
racingcow / fixedlines.wxs
Created Apr 10, 2013
The corrected lines, with a higher "Order" (weight) given to the evaluation of the "CertificateDlg" condition so that it is evaluated first.
View fixedlines.wxs
<Publish Dialog="BaseAddressDlg" Control="Next" Event="NewDialog" Value="CertificateDlg" Order="2"><![CDATA[(NOT Installed) AND (BASEPROTOCOL = "https")]]></Publish>
<Publish Dialog="BaseAddressDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="1">NOT Installed</Publish>
@racingcow
racingcow / brokenlines.wxs
Created Apr 10, 2013
The broken lines from the WXS file
View brokenlines.wxs
<Publish Dialog="BaseAddressDlg" Control="Next" Event="NewDialog" Value="CertificateDlg" Order="1"><![CDATA[(NOT Installed) AND (BASEPROTOCOL = "https")]]></Publish>
<Publish Dialog="BaseAddressDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="2">NOT Installed</Publish>
@racingcow
racingcow / broken.wxs
Created Apr 10, 2013
An excerpt from my original WXS file showing the Publish elements
View broken.wxs
<UI Id="IntegrationFrameworkUI">
...
<Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish>
<Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">NOT Installed</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
@racingcow
racingcow / index.css
Created Jun 25, 2012
youRhere-part3-index.css
View index.css
html
{
font-family: 'Segoe UI', Tahoma, Arial, Helvetica, Sans-Serif;
margin: 12px;
}
ul
{
list-style-type: none;
margin: 0;
@racingcow
racingcow / targetprocess.js
Created Jun 25, 2012
youRhere-part3-targetprocess.js
View targetprocess.js
var rest = require("restler"); //https://github.com/danwrong/restler
//var moment = require("moment"); //http://momentjs.com
var self = this;
var methods = {
globalOptions : {},
init : function(options) {
@racingcow
racingcow / index.html
Created Jun 25, 2012
youRhere-part3-index.html
View index.html
<script src="/socket.io/socket.io.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script>
<link rel="stylesheet" type="text/css" href="index.css" />
<script>
var socket = io.connect("http://myservername:8080");
// on connection to server, ask for username
socket.on("connect", function() {
@racingcow
racingcow / index.js
Created Jun 25, 2012
youRhere-part3-index.js
View index.js
var app = require("express").createServer();
var io = require("socket.io").listen(app);
var tp = require("./targetprocess");
app.listen(8080);
//routing
app.get("/", function(req, res) {
res.sendfile(__dirname + "/index.html");
});