Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

USB Installation AutoRun and Drive Letter Changing

Featured Replies

G'day!

 

I how found that hard-coding Drive letter in config files (httpd.conf, ssl.conf, my.ini, php.ini, etc.) can lead to issues when you migrate a USB-key installation to another PC.

 

I work on projects on multiple PC's and wanted the system to recognize what relative path it was on, then adjust according.

 

My solution is as follows (If anyone has alternative and/or better solution, please share):

This is for Windows 9X, 2K and XP (Vista not verified)

 

Step 1: Install like normal

Step 2: Change references to %drive-letter%:/ to simply a backslash in 'main' config files

Step 3: Create Start.bat file in UniServer Folder on USB drive with following lines:

@echo off

pushd %~dp0

start %~dp0Start.exe

popd

Step 4: Create autorun.inf in root of USB drive with following lines:

[autorun]

open=UniServer\Start.bat

icon=UniServer\Start.exe

action=Start Uniform Server

LABEL=UniServer

UseAutoPlay=1

Step 5: Done!

 

Explanation:

The reason we create the autorun.inf is to allow a custom auto-run.

The reason we use the batch file in lieu of the executable is that I've experienced that accessing the Start.exe directly from the autorun.inf is unsuccessful. I believe it may have to do with the way the CWD (current working directory) info is relayed to the executable from the autorun file. The batch file switches to current directory and 'pops' it back to normal. I realise this is kinda a hack, but I can dynamically change drive letter of the USB-key on any PC and with I insert the key, the autorun.inf works without a hiccup.

 

Thank you for your time!

-page2pagepro.com

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.