PDA

View Full Version : Setupbuilder, my EXE & best practice?



NewsArchive
01-08-2014, 05:42 AM
I've got a simple EXE (2.6MB) that I'm going to deploy with SetupBuilder.

The app creates 7 small TPS files for it's use.

My question: Should I put the EXE in the Program Files group and have
the Launch Icon specify start-up somewhere else?

Recommendations appreciated!

Scott Ripley

NewsArchive
01-08-2014, 05:42 AM
Hi Scott,

In our accessories demos, we use Program Files for the EXE and (for example)
C:\ProgramData\Capesoft\Demos\DrawShot for the data.

In the app's program setup (before a data file is opened), we use WinEvent
to get the ProgramData folder and set the path to that folder:

if ~exists(ds_GetFolderPath(WE::CSIDL_COMMON_APPDATA) &
'\Capesoft\Demos\DrawShot')
ds_CreateDirectory(ds_GetFolderPath(WE::CSIDL_COMM ON_APPDATA) &
'\Capesoft\Demos\DrawShot'')
end
setpath(ds_GetFolderPath(WE::CSIDL_COMMON_APPDATA) &
'\Capesoft\Demos\DrawShot'')

You can check it out in action here:

www.capesoft.com/ftp/public/drawshotdemoinstall.exe

Geoff