Skip to content

Instantly share code, notes, and snippets.

View racingcow's full-sized avatar

David Miller racingcow

View GitHub Profile
@racingcow
racingcow / fixedlines.wxs
Created April 10, 2013 03:32
The corrected lines, with a higher "Order" (weight) given to the evaluation of the "CertificateDlg" condition so that it is evaluated first.
<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 April 10, 2013 02:15
The broken lines from the WXS file
<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 April 10, 2013 02:10
An excerpt from my original WXS file showing the Publish elements
<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 June 25, 2012 03:30
youRhere-part3-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 June 25, 2012 03:20
youRhere-part3-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 June 25, 2012 03:17
youRhere-part3-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 June 25, 2012 03:15
youRhere-part3-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");
});